Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Static variable
Message
De
14/10/1999 11:19:53
 
 
À
14/10/1999 07:43:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00276200
Message ID:
00276350
Vues:
24
>Static variables doesn't exist in VFP. You'll have to declare the variable elsewhere (maybe in a class property) to make it available each time the method is called.
>How do I set a 'static' variable in VF, just as I do it in C/C++?Originally the lift time of local variable is only within that procedure or function, how can I get it back as I come in afterwards?

That wouldn't be adequate. A static variable of a class is shared across all instances of the class.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform