Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
(Object) = (Object): Operator/operand type mismatch
Message
From
30/10/1998 05:36:01
 
 
To
30/10/1998 05:27:12
Marco Beuk
Innovero Software Solutions
The Hague, Netherlands
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00152639
Message ID:
00152647
Views:
23
>>>Why can't i check if an object reference equalizes an object refrence:
>>>
>>>oObject = This WORKS
>>>? oObject = This Operator/oparend type mismatch
>>>
>>>How should i check if to object refrence refer to the same object (its names are not unique).
>>>
>>>Marco Beuk.
>>
>>Hi Marco
>>Try it slightly different
>>oObject = This       WORKS
>>? oObject.name = This.name
>>
>>Best
>
>But the name can be the same while the objects are different because the name of an object doesn't have to be unique.
>
>Marco.

Not quite. Two objects in the same container can't have the same name. Since TYPE("oObject") as well as TYPE("THIS") is "O", operator "=" isn't recognized, but there's plenty of properties to check (Class, BaseClass...)

Regards
Danijel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform