Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SAVE TO mem var file?
Message
De
11/07/1998 03:10:35
 
 
À
10/07/1998 12:21:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00116188
Message ID:
00116436
Vues:
15
>Here is my code:
>
>restore from datapath addi
>mypath ="c:\one"
>setpath ="c:\two"
>save to datapath
>
>datapath only contains setpath and not both mypath and setpath.
>What did I do wrong?

I always use prefixed variables for mem files, eg...
s_mypath= "dcdcd"
s_setpath= "scscsec"
SAVE TO S_Data ALL LIKE S_*

Note always use SAVE TO .... never SAVE ALL LIKE xxxx TO... - the parser doesn't always get it write.

Mem files have distinct advantages over dbf's and ini files at times. Provided the data is something that say only a "master" user ever writes to - like system config data. Or use the MEMO and save to a memo field in the users file.
The benefits...
1. You can store arrays. (beats dbfs)
2. You can store different data types (ini files only store strings)

Again what the others said about multi-user conflicts is a fair comment - horses for courses :-)

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform