>That thread gave me the idea to totally re-build the form and the sub-sub class. It fixed the wierd instantiation.
>
>Now I'm left with the following situation:
>1. The form is MODAL when it is called, otherwise "DO FORM formname TO var" would fail. In any case WINDOWTYPE is 1.
>2. The form is MODAL at the "RETURN returnvar" statement in the UNLOAD method and "returnvar" is the correct value.
>3. The very next step in the trace returns to the line after "DO FORM .." and at that point "var" = .T.
>
>Guess I'll have to re-build the calling form hierarchy.
One more SWAG: do you have an open table with the field name the same as a variable?
If it's not broken, fix it until it is.
My Blog