Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Static variable
Message
 
À
24/10/1999 21:35:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00276200
Message ID:
00280851
Vues:
15
Vlad,

Perhaps we are talking about two different things. I would love to have STATIC variables available in VFP, but they are not available. Seeing as they aren;t there we need to find the best way to provide the same functionality they provide. The best way, IMHO, to do this is to use an object and a property of that object as a pseudo static variable.

STATIC variables are always LOCAL, they are unavialable to the calling or called routines from the routine that declares them. The difference between a true LOCAL and a STATIC is that the STATIC retains its value between calls.

STATIC members of objects are something different, and I was not discussing them at all. My post was related, strictly, to static variables and how to simulate them since VFP doesn't have them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform