Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to public variables
Message
 
To
11/06/2002 16:07:35
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00667071
Message ID:
00667557
Views:
21
Sammy,
we use a number of memvars that are created in our main program. They are read in from a dbf using:

USE VARTABLE.DBF
SCAN
MVAR = VARTABLE.MEMVARNAME
&MVAR = VARTABLE.VALUE
ENDSCAN

All vars created this way start with xx such as xxCompanyName. That makes it easy to know which ones to not change.

We also have a user setup program that allows the user to change some of the values.

John.


>Hello All,
>Can someone show me the alternatives using public variable.
>I have used them extensively in my application but i hear it can get really dangerous.
>
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform