Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I need totals for each.....
Message
 
 
To
02/05/2008 11:52:32
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01312769
Message ID:
01314817
Views:
13
>O.K. I have created a modal password .scx file with buttons and boxes I do not have a clue what code or??? to use to validate the password (simple users.dbf with info and password
>do you have any ideas???
>
>Thanks for the article to Hilmar's transaction log I am going to almost exactly that with a couple of twists.
>
>Thanks again for your help
>
>Fred W.

Well, you would probably need to encrypt the passwords. But let's assume for now you don't have them encrypted.

You need a Users DBF with UserID and Password fields (plus additional fields). Then you simply try to search for the provided userID, something like
if Seek(rtrim(thisform.txtUserID.value), 'Users','UserID') 
   if rtrim(Users.Password) = rtrim(thisform.txtPassword.value)
        * This is a valid user
   else
      * ? Is it possible to have multiple users with the same ID - should be not, use Candidate index (or Primary for this)
      * The password is not valid
  endif
else
  * The User is not found
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform