Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global Variable NOT!!!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01111807
Message ID:
01111816
Views:
31
>Declaring isn't enough - the variable must also be initialised, as in:
>
>
>PUBLIC glVar
>glVar=.f.
>
Hi Matt,

I agree that it's a good practice to initialize variables explicitly but the PUBLIC variables are initialized with .F. when they are declared. The same as LOCAL variables. I think you confused them with the PRIVATE statement. It doesn't create any variables but hides the once listed in it if they already exist up the calling chain.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform