Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hey george - could you give me your views on this questi
Message
 
To
13/08/1998 14:42:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00126656
Message ID:
00126666
Views:
15
>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,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform