Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class for Save current environment state
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00175851
Message ID:
00176235
Views:
32
>Hi,
>
>Have anyone a function or class to Save All current environment and obviously Restore it ??
>
>Note: All means Databases opened, order, current recno, relations, free tables, datassesions, etc.
>
>If someone have something that can help me, I'll be very happy.
>
>Thanks in advance for yor time!!!!!!

You can create a class which has properties which are set in the .Init event. In the .Destroy event, you can reset the environment from the properties.

.Init
THIS.cDeleted = SET("DELETED")

.Destroy
SET DELETED (THIS.cDeleted)

You could also had any number of methods that could set things that you want and reverse them as needed.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform