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:
00309262
Views:
21
>Philippe,
>
>You are mistaken, variables are by default PRIVATE, they must be declared LOCAL.

It's clear now. Thanks to all.

The only information about defalut status as private in fox help is this one:


private variable (defined)


A variable that is released when the routine it is defined in terminates. Private variables are the default in Visual FoxPro and require no special keywords to define. However, they can be scoped with the PRIVATE keyword if there is already a variable of the same name at a higher level. Contrast local variable, public variable.


I didn't find anymore clear information about the topic.
Kind regards

Philippe RIONDEL,
a French man in Montreal
=======================================================

Who tries can sometimes be wrong, who doesn't is always

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform