Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I need totals for each.....
Message
 
 
À
02/05/2008 11:52:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01312769
Message ID:
01314817
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform