Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from a (modal) form class?
Message
From
24/01/2002 18:56:21
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00610190
Message ID:
00610202
Views:
26
Chris, thanks. This works great, as long as the modal state is "turned off" by using thisform.Hide() and then release the form later - after getting the return value from the form.

Thanks!
Alan

>>I need to return a value from a form object. The form is a class in Library and is instantiated via CreateObject or NewObject. I use the Show(1) method to activate the form and make it modal. Is there a way to return a value from the form when it is released? Or, MUST the form be an .SCX and instantiated via DO FORM ... TO ... ?
>>
>>Thank You,
>>Alan
>
>Assign the value to be returned to a property,
>and then in the calling function read this property.
>eg.
>
>
>*in form class
>this.retVal= m.retVal
>
>*in calling class
>oFrm= createobject("MyForm")
>oFrm.SHOW(1)
>retVal= oFrm.retVal
>
Previous
Reply
Map
View

Click here to load this message in the networking platform