Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Meanwhile, back at Private Data Sessions...
Message
De
12/10/1999 11:14:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00274579
Message ID:
00275462
Vues:
31
>Harry,
>
>VFP objects exist in memory. They have a Name property, but the Name property does not reference the object, it is a property of the object. VFP uses memvars or object properties to refer to objects. Check out the code below;
>
>
>SET CLASSLIB TO MyClasses ADDITIVE
>loObj = CreateObject("MyClass")
>loObj.Visible = .T.
>loObj.Name = "Widget" && does not change the fact that loObj is the object
>                      && reference
>?? loObj.Name && Displays Widget even though the memvar reference is loObj
>
>
>This causes confusion for most people at first until you get the idea that an object has a name property

embarrassingly that is what I forgot. Embarrassing cos I knew That! Just in dumb mode today I think.


Thanks again. I think a light is beginning to dawn!

Harry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform