Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from form after creating form in code
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Return value from form after creating form in code
Miscellaneous
Thread ID:
00693423
Message ID:
00693423
Views:
81
Hi all,

I know how to "DO FORM myform TO lcRetVal" to return a value from a form, but what if you create the form in code:

ofrmTest = CREATEOBJECT('myformclass')

You can't "DO FORM ofrmTEST TO lcRetVal". I tried DO FORM (ofrmTest) TO lcRetVal.

ofrmTest.Show() correctly fires up the form, but how do return a value from it when created this way? I'm not quite sure how to deal with an oject reference to the form instead of the usual .scx itself.

Thanks in advance,
Larry Tucker
Next
Reply
Map
View

Click here to load this message in the networking platform