Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A basic thought about LOCAL variables
Message
 
À
28/12/1999 20:32:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00309158
Message ID:
00309657
Vues:
30
>And this is the point to this discussion: whatever you do, explicitly declare all your variables using LOCAL, PRIVATE or PUBLIC (why and when to use each is a different thread :)).
>

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