Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I return a value from a class?
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00060139
Message ID:
00060223
Views:
26
>Sorry to be boneheaded about this...I understand what you are saying here. My class frmCalendar has a calendar that they select a date and then click a commandbutton that says . The click event of this commandbutton saves the value selected, to a property of the form and then releases the form.
>
>Should I be doing something different? Or how do I know from within the form that creates the instance of this class, when to grab the property?
>

Don't release the form. Hide it instead

THISFORM.uRetVal = THISFORM.Calendar.Value
THISFORM.Hide()

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform