>I would like to check for a return value from a FORM.
>How would I do this?
>thanks
Robert,
For a form to return a value it must be modal.
*Modal form init
lparameters paramshere
*Modal form unload
...
return ReturnValue
You call it :
do form mymodal with parms... to myreturnvalue
While this is the basic structure for a form returning a value, instead of this approach you might use these better ones :
1) Create a var(s) before calling another
This way you could change those var(s) from the called form.
2)Pass caller ref to called form
do form myform2retvalue with thisform
* myform2retvalue.init
lparameters oCaller
thisform.CustomSourceHolder = oCaller
* Any PEM
thisform.CustomSourceHolder.AnyPem() && A method call or prop assign-access
This way instead of returning a value you could directly use caller's PEM.
3)Do form myform name "myParent" linked && Myparent object ref is available
do form myform2retvalue && Same as 2 except you don't pass the ref
* Any PEM
myParent.AnyPem() && A method call or prop assign-access
*myParent references caller
Cetin