Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class for Save current environment state
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00175851
Message ID:
00176235
Vues:
33
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform