Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a class form
Message
From
09/11/2001 18:19:34
 
 
To
09/11/2001 16:27:48
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00579966
Message ID:
00580039
Views:
20
Hi Dave,

Try something like the following.

Assuming that RetVal is a property of the oCalendar class. Also assuming that your OK/Cancel buttons HIDE the object not release it so that you can get at the "RetVal" property first then manually release the object
oCalendar =NewObject('frmCalendar', 'Misc.vcx')
oCalendar.Init(dBirthdate)
oCalendar.Show(1)
dBirthDate = oCalendar.RetVal 
oCalendar.Release()
>If I substantiate a form as:
> oCalendar = NEWOBJECT('frmCalendar','Misc.vcx')
>
>Then Initiatialize it and pass parameter EMPTY(dbirthdate):
> oCalendar.Init(dBirthdate)
>
>Then Show the form:
> dBirthdate = oCalendar.Show()
>
>The RETURN in the form classes UNLOAD doesn't get returned to dBirthdate. Is there another way to amend the value of dBirthdate, obviously my SHOW() syntax is incorrect.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform