Zitat:
Delphi-Quellcode:
if MSNMyContact.Status=status then // <<< compiler shows error here!!!
MSNMyContact := (MSNMyContacts.Item(v_Count) as IMessengerContact);
result:= MSNMyContact.FriendlyName + ' ' +MSNMyContact.FriendlyName;
You only can evaluate the reference after assigning an object to it. Maybe you have to change the order