Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
 
 
To
09/11/2001 18:03:53
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00580045
Views:
27
In addition to the other suggestions, I want to suggest something else that also works and often gets overlooked...

A private variable...

Don't laugh...< g >

Some may say this is not OOP. Whether you instantiate an object that has to be passed to the form or whether you declare a private variable and have the form reference that variable, I don't see a material difference.

Do I advocate the use of Private Variables for widespread use? No. I advocate the use in these limited circumstance.

Private dRetVal
*- Instantiate the class
*- Populate the variable in the class
*- Done...

It's simple and it works...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform