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:
00158118
Views:
24
Michael,

The reason it's failing on you, is because when Unload() fires all of the contained controls have already been destroyed. So the easiest way to do this is to use a custom Form property that the control is bound to. The Form property is still returnable in the Unload event.

>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()
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform