Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SAVE TO mem var file?
Message
From
11/07/1998 03:10:35
 
 
To
10/07/1998 12:21:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00116188
Message ID:
00116436
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform