Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to public variables
Message
From
13/06/2002 14:03:17
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
13/06/2002 09:34:16
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00667071
Message ID:
00668125
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform