Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set global variable
Message
From
27/01/2004 17:35:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00871154
Message ID:
00871160
Views:
13
You have many ways to do this, the easiest is
PUBLIC myVariable myValue

Myself I prefer
_screen.addproperty('myVariable','myText')
_screen.addproperty('myVariable',myNumeric)

Or you can create a class and add the properties to that class.

>is a way to create a gobal variable somewhere outside forms, such as in main.prg so that all of my forms can access this variable. I need to set some directory paths, but I don't know where the directories are going to be and it would be much easier to just set it at one location. Is a better solution than this. I'm running vfp8.
>
>thanks
>nick patel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform