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:
00309325
Views:
26
Hi, Jim

You've got me confused. When you say that vars are PRIVATE by default, do you mean the scope behaviour (i.e., the var is gone when leaving the procedure), or the directive declaration PRIVATE? I know that I have to declare my vars PRIVATE so they are not confused with pre-defined vars of the same name, if they may exist.
Mark


>Variables in VFP are PRIVATE by default unless they are explicitly declared with some other scoping. There is no "strange beast" related to variables that have not been declared, they are private. They act like private, they look like private, they last like private, they ARE private.
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform