Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A basic thought about LOCAL variables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309158
Message ID:
00309325
Vues:
25
Hi, Jim

You've got me confused. When you say that vars are PRIVATE by default, do you mean the scope behaviour (i.e., the var is gone when leaving the procedure), or the directive declaration PRIVATE? I know that I have to declare my vars PRIVATE so they are not confused with pre-defined vars of the same name, if they may exist.
Mark


>Variables in VFP are PRIVATE by default unless they are explicitly declared with some other scoping. There is no "strange beast" related to variables that have not been declared, they are private. They act like private, they look like private, they last like private, they ARE private.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform