Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
(Object) = (Object): Operator/operand type mismatch
Message
De
30/10/1998 05:36:01
 
 
À
30/10/1998 05:27:12
Marco Beuk
Innovero Software Solutions
The Hague, Pays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00152639
Message ID:
00152647
Vues:
25
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform