Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate Userid & Password
Message
From
17/05/2008 12:29:54
 
 
To
17/05/2008 12:15:13
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:
01317863
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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform