Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 Tip-o-the-day
Message
De
16/07/1998 10:06:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00118034
Message ID:
00118090
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform