Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO FORM MyForm TO uResult--Undefined Variable
Message
From
14/09/1999 08:43:45
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00264264
Message ID:
00264389
Views:
22
PMFJI, but what you get is exactly what you're supposed to get. Returning .F. in the Init method prevents the form from beeing instanciated, so it's perfectly normal that the Unload event isn't fired - there is nothing to unload.

Peharps you can DO FORM MyForm NAME oForm, and then check TYPE("oForm"); if it's Undefined, the form's init returned .F. and your form was not instanced, if it's an Object, then your form exists.

>I tried initilizing the variable first, but it appears that the Unload event does not return the reference back to uResult. I created the most simple form as an example:
>
>{Init}
>RETURN .F.
>
>{Unload}
>RETURN "1"
>
>uResult = "0"
>DO FORM MyForm TO uResult
>? uResult && displays "0"
>
>I believe it's a "problem" with VFP. Is there anything else I can try to get the variable passed back?
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform