Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save/restore VFP environment?
Message
From
05/10/2011 05:04:42
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01525502
Message ID:
01525631
Views:
59
>I am working with a very large, complex, convoluted application. One thing we have a lot of problems with is called programs causing problems for the caller. What I am looking for is a robust method of saving the environment (open work areas, index orders, record pointers, FoxPro SET values, etc.) upon entry of a called program and then restoring it on exit.
>
>CREATE VIEW filename, then SET VIEW TO filename seem to offer a simple built-in way of doing so. I have not used them. Do they really work?

It does what it was designed to - it will reopen your tables... well, if they are dbfs. Didn't try with views or SPTs. Also, you may try to save your variables, but when you restore them they all become private to the routine which did the restore (including the local and public ones). Also, not sure whether the .vue files preserve more than the current datasession. The .vue files are a thing from the eighties.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform