>>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.
>
>Hi:
>
>Thanks for responding, but
the Unload event does fire. I put a WAIT WINDOW "Unload event firing" in the Unload event. However, I believe you are correct that because the Form has not fully instantiated when the unload event fires.
>
>I'm looking for a reasonable work around.
>
>Thanks!
>
>--Paul
Paul,
Unload event fires but form is not initialized. So you get no return value. There is a clumsy workaround :
local myVal
do form myValGetter with .f., myVal to myVal
? "Myval is now", myVal
do form myValGetter with .t., myVal to myVal
lparameters tlInit, tnRetVal
tnRetVal = 100
thisform.RetVal = tnRetVal * 3
return tlInit
return thisform.RetVal
Cetin