Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 Tip-o-the-day
Message
From
16/07/1998 10:06:39
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00118034
Message ID:
00118090
Views:
21
>Folks,
>
>Here's a really neat one. In VFP6 you can compare two object references using the = sign to find out if they both refer to the same object.
>
>
>
>o1 = CreateObject("MyClass")
>o2 = CreateObject("MyClass")
>o3 = o1
>
>? o1 = o2 && displays false these are not the same object
>
>? o1 = o3 && dislays true these are the same object
>
>DEFINE CLASS MYClass AS Custom
>
>ENDEFINE
>
>
These will be good to have whenever I get my hands to VFP6. I hope you can post them somewhere here say in October 1st?

Crescencio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform