Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning value from Class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00158041
Message ID:
00158045
Views:
21
Michael,
The UNLOAD event doesn't fire until the form is released. And then it only returns a value if you're doing a TO clause in a DO FORM statement:

DO FORM Calendar TO ldDate

To get a value from a form class instance, simply set a property of the form and access it:

oCalendar.dDate = DATE()
ldDate = oCalendar.dDate

...or create a method that will return it:
ldDate = oCalendar.GetDate()

HTH...
Mark

>I have a class object that is a form and I want to return a value to ldDate. Is there a way I can do this. I tried returning the value from the UNLOAD event but it didn't work. Thanks in advance.
>
>
>set classlib to CalLib
>oCalendar = CREATEOBJECT('calendar')
>ldDate = oCalendar.Show()
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform