Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where is the best place to declare public variables?
Message
From
30/08/2000 23:42:33
 
 
To
30/08/2000 23:38:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00408953
Message ID:
00411158
Views:
17
>>In my apps I do have one PUBLIC variable = my application object - this guy gets created in the main.prg.
>
>If you create a PRIVATE variable in your MAIN.prg it will be available to all the routines in your app, just like a PUBLIC. There's no reason to use one there either :-)

Yep - I switched to PRIVATE not too long after I posted this <g>
Solves the problem of one app built with the framework calling another, too!
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform