Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a value from a createobject('modalformclass')
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00410770
Message ID:
00410798
Views:
15
>So...
>
>Instead of ThisForm.Release when the user oks or cancels the custom class, issue ThisForm.Hide()
>
>Then in the calling method:
>*** From a custom method in Form A
> cVar = ''
> loFrmRV=CREATEOBJECT('frmReturnVal','frmRV',cVar,'param1','param2')
> RELEASE loFrmReturnVal
>
>interesting... I'll give it a try. Thanks.


Almost,
loFrmRV=CREATEOBJECT('frmReturnVal','frmRV','param1','param2')
loFrmRV.Show()
cVar = loFrmRV.cReturnVal 
Release loFrmRV
Hope this helps,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform