Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where Should Public Variables be Placed
Message
 
 
To
17/06/2013 14:30:28
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:
01576568
Views:
77
>I am working on a small application. On my Form I have to select The Month and the year. Suppose I select Month as april and year as 2013. I need to print the same on my report file (.frx).
>
>So,
>
>(1) Do I need to declare them as Public ?
>(2) Where should I place or declare them in my program(prg) or .H file or somewhere else ?
>(3) I have heard that In forms also variable are declared as Public, if Yes How and whats the method.
>
>Kinldy Guide
>Harsh

You don't have to declare them public. You can declare them local prior to calling the report REPORT FORM command and they will be visible in the report. In worse case scenario you may declare them private.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform