Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.mem files
Message
From
29/08/2000 12:24:53
 
 
To
29/08/2000 12:05:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00410324
Message ID:
00410343
Views:
17
>My experience is with FPW 2.6. I have recently switched to VFP6.0.
>
>My app currently stores various incrementing variables to .mem files. When I need to increment a field, I restore from the .mem file, add one, replace the field with the result, and save the new number to the .mem file.
>
>Is there a better way to do this in VFP 6.0?

In a table :)

I used to use .mem files (from the DOS days), using tables & objects solves a lot of problems that I used to have (regarding variable scoping, ease of setting up a new variable, etc.)

For example, you could have one table that stores all of your autoIDs (autonumber keys). Have objects query/update the table when necessary.

HTH
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform