Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Static variable
Message
 
À
14/10/1999 11:50:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00276200
Message ID:
00280556
Vues:
18
>Albert,
>
>So then it sounds like simply declaring a PRIVATE anywhere earlier in the code/module hierarchy than when it will be needed should work just fine, no???
>
>Cheers,
>
>Jim N

Jim,

Ther are lots of wokr arounds for not having STATIC variable. however STATICs do have a place. Using PRIVATE or (god forbid) PUBLIC is not the saem thing as the variables are now defined and possibly accessed outside the routine that wants them as LOCAL static variables inside it self. STATICs are LOCAL except they retain their value between calls. The closest thing to a STATIC in VFP is a HIDDEN or PROTECTED property of an object.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform