Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A basic thought about LOCAL variables
Message
De
28/12/1999 23:15:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309158
Message ID:
00309692
Vues:
39
I know you know and you know I know. :) But when somebody with your weigth in VFP (no pun intended :)) says that undeclared variables are PRIVATE (even if you say that this applies only to newly created vars) many others may miss the subtlety and, as I've seen way too many times in practice, they will not declare variables as PRIVATE because... they are PRIVATE anyway. :(

Wow, this is the second long thread on this subject in two weeks. :(

Vlad

>No need to defend your point youa re correct in saying that variables should be declared. WEhere I am disagreeing with you is in the statement that a variable created wihtout being declared is anything but private, note I said created. The problem in VFP is that we can create a variable without declaring it first. The assignment operators (= and STORE) will create a variable if one doesn;t exist, if one does exist it will use that one. The scope of a variable created by the = or STORE command is private in scope, it is not almost private or sort of private, it is private.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform