>>What if they don't have a parent?
>>
>>Vlad
>>
>>>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.
>
>Vlad,
>
>Like forms? There cannot be two forms having the same name at one time.
Jim,
What if forms are called :
for ix=1 to 5
do form myform
endfor
Wouldn't I have 5 forms all with the same name ? Compobj() + Ken Levy's caption change trick (In Hacker's Guide to VFP3) seem to be more secure and if ever names couldn't be same than compobj() wouldn't need that trick also.
Cetin