Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saved variables
Message
De
12/12/2005 11:45:42
 
 
À
12/12/2005 11:40:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01077187
Message ID:
01077192
Vues:
25
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform