Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Persistant variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00095420
Message ID:
00095433
Vues:
23
>I need an persistant object variable that is not affected by the clear or release commands (any options). Is this possible?
>
>I dont want to recode using to use the except option, I just need a persistant object variable.
>
>TIA

There is a way to do this, although your code readability will suffer. VFP's system variables never lose their value, even when commands like CLEAR ALL or RELEASE ALL are issued. You could employ one of these variables that you don't use in your application to hold a value you need. There variables are typed, so therefore you'll have to use a date system variable for a date data type, and so forth. One example of a system variable that isn't widely used anymore is _FOXDOC (at least I don't think so). See the VFP Help file under system variables.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform