Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement