Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global variable
Message
 
To
22/05/2002 12:02:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00659966
Message ID:
00660134
Views:
19
>Hi,
>
>
>PUBLIC myvariable
>
>
>HTH

John,

PUBLIC and global are NOT the same thing. PUBLIC is a command that should be avoided like the plague, it creates very bad;ly behaved variables that can cause untold problems in places that you would never expect them.

A global variable in VFP is a private variable that is declared and created in the top level program of the application. Any such variable is visible to the entire application.
Previous
Reply
Map
View

Click here to load this message in the networking platform