Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to public variables
Message
De
13/06/2002 14:03:17
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
13/06/2002 09:34:16
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667071
Message ID:
00668125
Vues:
27
Sammy:

Make certain the variable oGlobal is declared as PUBLIC; it should be the only PUBLIC variable you need in the entire App...

Make sure that the first FORM you call is called after the Global App is created, and any other Forms are called from it;

Make certain there is a READ EVENTS issued so that the program doesn't continue and Release the oGlobal variable (which will make the Object go out of scope - that looks like that is what happened...)

HTH,

-Irv.

******

>Thanks Irv,
>Now i have only one problem.
>When i try to retrive the value with oGlobal.propertyname on any form (i.e outside the method where the class was created/instantiated) i get the message 'alias not found'. How do i make the object accessible to other forms/methods? In the same method however it works alright.
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform