Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A basic thought about LOCAL variables
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309158
Message ID:
00309569
Views:
32
>>
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform