Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing objects
Message
From
06/08/1998 23:42:01
Chrita Lee
ProMOS Technology Inc.
Hsinchu, Taiwan
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124254
Message ID:
00124691
Views:
28
>Chris,
>
>yes ther is afunction named CompObj() but it does tell if the two object reference point to the same object. It only tells you that all of the property values or the two object have the same values. That could cause a problem by saying that two objects are the same when in fact they aren't.
>
>Thats is why my suggestion first comapre the names of teh two object adn then the names of each one's parent object. If they have the same name and they in the same container then they must be the same object. VFP would bark up a storm if we tried to put two object with the same name in the same container.

Jim:

(1) Yes I know there will be some problems in CompObj(). So I said that there is
some traps in that function. Tamar's book also points out the question you mention. :-D

(2) How about parent.parent.parent....?

container_1 container_2
grid_1 grid_1
column1 column1
text1 text1

Are they identical?

Chris Lee
Previous
Reply
Map
View

Click here to load this message in the networking platform