>>I would like to check for a return value from a FORM.
>> How would I do this?
>> thanks
>
>Hi Rob,
>
>Well, first the form has to be modal. Second, regardless of whether or not it actually does, a DO FORM myform.scx TO retval will return a value regardless of whether or not the form actually contains the line: RETURN whatever in the Unload event. If there's no return value, the variable will equal .T.. However, the form could legitimately return this value, but its more likely that it would return some other data type.
>
>If you want to check this in development without actually opening the form in the design mode, you can USE it like a table. Locate "form" in the baseclass field, then see if the "PROCEDURE Unload" is found in the methods field of it. You'd have to scan the field to see if RETURN had something being returned before the ENDPROC statement.
>
>hth,
thank you george - that helps a lot. :)