Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why does this not work?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00571086
Message ID:
00571122
Views:
31
>>>>>Does anyone know why COMPOBJ(xx, yy) does not work for the following (VFP7):
>>>>>
>>>>>xx=CreateObject('custom')
>>>>>yy=CreateObject('custom')
>>>>>? COMPOBJ(xx, yy) && should have returned .t. instead I get .f.
>>>>>
>>>>>Costas
>>>>
>>>>Because after instantiation they obviously have different Name properties.
>>>>
>>>>From Help:
>>>>
>>>>COMPOBJ( ) returns false (.F.) if an object has a property that the other object doesn't have, or if the objects have identical properties but the values of one or more properties differ.
>>>
>>>I just run a test and they have all identical properties with the same values. However the properties Control, Objects and Parents give an error 'xxxxx is not an object'. I guess COMPOBJ cannot compare them because of that.
>>
>>I instantiated them from Command window and checked in Watch Window - they have different name properties. VFP 6 SP5.
>
>O well, I tested it in VFP 7 because the question was about VFP 7 :)

I don't have VFP 7 at work. :)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform