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