Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where Should Public Variables be Placed
Message
From
18/06/2013 05:52:28
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
18/06/2013 00:02:27
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01576563
Message ID:
01576600
Views:
52
>>Local should work, but in case there may be problems, you can declare variables private.
>
>Basically it all depends on in what context the REPORT FORM command is executing. If it operates within the context of the method/procedure in which it is executed, then the variable will be "visible". Declaring them to be PRIVATE would be more likely to work than LOCAL -- I would lean toward using PRIVATE to allow for the possibility of a pre-processing or post-processing stage (in which case, a new call level would likely occur -- causing the LOCAL variables to become hidden).

And then there's the issue of all the code snippets within the report, which may want to use some of these variables. My hunch is that they wouldn't see the locals.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform