Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saved variables
Message
From
12/12/2005 11:45:42
 
 
To
12/12/2005 11:40:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01077187
Message ID:
01077192
Views:
26
>I want to save and retrieve variables when running an app. to and from disc.
>
>There are foxpro commands for doing this.
>
>I know I could use a table for this purpose but what are the commands?

Just create a table and name and type your fields like the variables they are to hold.

Then when you want to store the vars its's:

Update MyVarTable set UserName = lcUserName
or...
Select MyVarTable
Replace UserName with lcUserName


Or you could use an .INI file

or you could use Save To and Restore From a .MEM file

HTH

Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform