Information générale
Catégorie:
Gestionnaire d'écran & Écrans
PUBLIC variables are not shared (they are not SO public) accross multiple VFP instances.
Vlad
>You can still use a private oObj
in the main prg that launches the initial creator object. This will give it app only scope, and would potentially allow you to have two or more simultaneous apps running independent of each other.
>
>>As to object references, I'll bite: If I am doing oObj=NEWOBJECT("something","something") and I am doing this in some method somewhere but want oObj referenced everywhere, what's wrong with PUBLIC oObj? Or do I have my head up my butt? (a common occurence lately).
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement