>I'm calling a form (that checks for a valid password)in the click of a command button. The command I use is
> DO FORM PASSWORD TO lValPass
>before this command I say LOCAL lvalPass
>In the password form , in the init I say
> Paramaters lValPass
>I also create the property lValPass on the form.
>
>In the Unload of the form I return lvalpass
>I get an error message that lvalpass is not valid
>
>On my password form I have just 1 textbox called txtpass. In the click of that I check to see if the password is valid. If it is I set lvalpass to t, otherwise it's f.
>
>This isn't working.
>
>Please help.
>
>Thanks.
I assume your form is modal. You need to change the call to your form to be:
DO FORM password WITH lvalpass TO lvalpass
And in your Unload method you need to:
RETURN thisform.lvalpass
Hope that helps.