Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Save/restore VFP environment?
Message
 
 
To
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:
01525641
Views:
53
>>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.

Yeah, I know. As one of my former GFs said to me, I'm living in the 80s ;-) (Please don't anyone take that literally. I am trying my hardest to move on to .NET. But that's another topic and another swamp from the one I am living in at the moment). The datasession issue does seem problematic. Called forms in this app all use private datasessions and I imagine that changes the instant a form with a private DS is called.

This app is a challenge. You even look at it crosseyed, it goes goofy.
Previous
Reply
Map
View

Click here to load this message in the networking platform