General information
Category:
Forms & Form designer
Lawrence,
just define a property in your form class (let's say MyFormClas.cRetVal) and when you finish your processing in oForm return hiding it. That way you can get the return value as oForm.cRetVal and release oForm afterwards.
>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,
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only