Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I return a value from a class?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00060139
Message ID:
00060223
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform