Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initializing Variable
Message
From
29/07/1998 01:44:53
 
 
To
29/07/1998 01:18:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00122209
Message ID:
00122213
Views:
19
If the variable doesn't exist at a higher level, than it defaults to PRIVATE. If it exists at a higher level, than that variable it is used.

IMHO, it's better to explicitly declare all local variables as LOCAL.

Vlad

>If I don't specify whether a variable is public or local, does it default to local?
>
>In otherwords is:
>
>LOCAL lcVariable
>lcVariable=this.value
>
>the same as just defining
>
>lcVariable=this.value
>
>If not, what are the differences?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform