Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameter to form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250894
Message ID:
00250917
Views:
8
>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.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform