Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can an object know of it's existence?
Message
De
02/12/2003 13:33:08
 
 
À
02/12/2003 13:18:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00855003
Message ID:
00855113
Vues:
21
Hi Stefan,

My problem is that I need the variable that holds the object reference internally. The NAME property could have just as easily been a custom property.

In it's simplest form:
ox = CREATEOBJECT("myclass")
I need the "ox" in the INIT.

>In general, the .NAME property is meaningless unless an object is parented, in which case it equals the object's name within the parent. This makes sense since an object can have any number of names but at most one parent.
>
>So, if your objects needs a 'global name' then you need some sort of anchor that is itself a global object.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform