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:
00309569
Vues:
31
>>
>>A PRIVATE variable will not destroy a varible of the same name created at a higher level. An undeclared variable will alter the contents of a variable of the same name created at a higher level. That is what makes an undeclared variable different from an explicitly declared private one.
>
>I'm OK with that and this is what my piece of code at the head of the thread illustrates...

Phillipe,

This si not an issue of scope for the vbariables. It is an issue of what the assignment operation does.


lcVar = "abc"

does one of two things, it either assigns a value to an existing variable that is in scope or it creates a private variable and assigns the value to that.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform