Link to home
Start Free TrialLog in
Avatar of wdw1971
wdw1971

asked on

I need more info on login/password file

I have another question concerning my previous query on creating a login/password file. As I'm only a beginner, I would appreciate if anybody could answer this in simple coding.

I need to create a program that will:

* allow the user to enter a login and password
* check the login against a list of valid logins
* if the login is invalid, then display an error message and  allow re-entry
* if the login is valid, then check password
* if the password is invalid, then display a error message and allow re-entry.
* if password is valid, then display a message indicating success.

Note: two arrays should be used to store valid logins and passwords.

I would really appreciate any help on this question.
Avatar of HOIMEI
HOIMEI

Hi wdw1971,

   I have not see your previous query. I guess that you have add a login in dialog(built-in) from VB. (Select login dialog when you add file) Right?
 
If yes, it's easy to achieve it.
(You may store an  user and password in the same array )
When user press OK(click event),  you check through the array(s) for the user name and password. If success, you can unload the form(Unload Me).
If not success, you can pop error message. This will not unload the form.
Hope this help
Avatar of wdw1971

ASKER

Thanks for the reply, but I want to know how to use two arrays, as oppose to using one to store logins/passwords.


ASKER CERTIFIED SOLUTION
Avatar of HOIMEI
HOIMEI

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial