Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global Variable in 2.6?
Message
From
02/05/2002 14:05:12
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
02/05/2002 13:58:52
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00652016
Message ID:
00652019
Views:
20
To define a global var:

PUBLIC myvar
myvar = "myvalue"

To check for the existance of a var called myvar:

IF TYPE("myvar") <> "U"
***The var myvar exists.
ENDIF




>Sorry for such a basic question but here it goes....
>
>I need some sort of global vairable to keep track of a user entered variable. It's entered in a .prg which closes at the end. The user reopens the same program and uses it for a different record. How/where do I define this and how do I use it?
>
>Thanks,
>Sunshine
Previous
Reply
Map
View

Click here to load this message in the networking platform