Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameter to form
Message
 
To
07/08/1999 10:59:58
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00250894
Message ID:
00251076
Views:
9
Hi Mike,
Thanks.
We don't have problems - I got 4. O.K. I'll modify this form to do what I want it to do. A few questions. I want to add a textbox for the user to type in a password. It's just 1 password that works for everyone. SO I want to hardcode the password into the form. How do I get the form to end after the user types in the correct password? If it's incorrect, I have a message and they keep trying until it's correct of they click on cancel. Do I put code to check for the password in the click or the valid of the textbox? When that textbox loses focus, I want the form to unload. I appreciate your help. I'm a novice who may never get past this stage.

>Hi Jane,
>
>Do this:
>
>1. Create a form called passback
>2. Add property eValue
>3. Change WindowType to Modal
>4. In the INIT() add:
>
>
lparam tnNum
>this.eValue=tnNum
5. Now in the unload add:
return this.eValue/2
6. Now save your form and from the command window type:
do form passback with 8 to nVal
>?nVal
If you don't get 4 we have problems.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform