Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Userid & Password
Message
From
17/05/2008 12:52:26
 
 
To
17/05/2008 12:29:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01317860
Message ID:
01317864
Views:
6
>I'm not clear on what the problem is. What do you want to happen if the password validation fails? Is the problem with validating the password or what action to take if it does or does not validate? Do you want the management form to run in either case or close the app (or exit that program) if the password doesn't validate and only launch the management form if the password validates?
>
>>So I am again trying to figure out the validation of a simple password form I have created, below is some code I was trying to get to work and since I could not make that work I stopped mid stride.....
>>
>>
>>
>>if Users.Password == PADR(ALLTRIM(thisform.txtPassword.value),LEN("Users.Password"))
>>        * This is a valid user
>>   else
>>      * The password is not valid
>>  endif
>>RELEASE thisform
>>DO FORM C:\HPRC\MANAGEMENT.SCX
>>
>>
>>
>>The table users only has 3 fields userid,username,password,
>>
>>If anyone can point me in the right direction .....
>>
>>
>>Thanks,
>>
>>Fred W.
Sorry, OK the form is not validating on userid or password, the mgmt. screen should not open unless the proper userid/password are entered. If the user enters incorrect info I guess re-prompt to the password.scx for re-enter of info. I have tried this and this is an old thread I gave up on and just built a separate .exe for the customer to access input screens and such. Now they want a password screen.

I hope i have worded this properly I am still learning this awesome language all over again I used to program 10+ years ago in 2.6 DOS/Windows

Thanks again.

Fred W.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform