General information
Category:
Coding, syntax & commands
Why not just use COMPOBJ?
IF you need to determine if obj1 references the same object as obj2 just use the equal operator:
IF obj1 = obj2 && true if they both reference the same object
You can also use the equal to (=) operator in Visual FoxPro 6.0 to determine if two object references refer to the same object
>HI John,
>try with this function
>
>*** function compobjs
>lparameters obj1,obj2
>local oldtag,retval
>oldtag = obj1.tag
>obj1.tag = "test"
>retval = obj1.tag == obj2.tag
>obj1.tag = oldtag
>return retval
>
>
>HTH
>
>Silvio
>
>>Hi,
>> How could I compare the object references in VFP?
>> ABC = thisform.text1
>> IF ABC (what operator??) whateverobject_reference
>> do whatever
>> ENDIF
>>
>> VB:
>> IF ABC IS WHATEVER_REFERENCE THEN
>> ?????
>> ENDIF
>>
>>Thank you
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only