Joshua Kendall said:
This is the code that I currently Have for one password
how do I specify multiple ones? There is no "or"
statement! What do I do?
Joshua... what are doing? You are posting messages under various accounts
and you start new threads all the time.
I tried to explain it earlier and you are doing the same thing now. The
"write a line of code" post a question methodology. My suggestion is to
stop and think. Design something that makes sense rather than coding
whatever strikes you this minute. A couple of messages ago it was a timer
issue on a dialog box, now it is how to hardcode a bunch of account/password
pairs and in another thread you have the "splash screen won't go away"
problem.
You are designing an unmaintainable mess and that can't be your purpose.
How can you even ask about how to access data from a dBASE file if you can't
turn the timer off or make the splash screen disappear? You aren't 100
lines of code away from finishing this, you are conceptually _eons_ away.
You have your spaceship launched and you are radioing back to Earth, "which
way is Mars?"
Consider pseudocode. Know what you are trying to program before you spend
your time (and ours) trying to code something that won't work should you be
lucky enough to remove all the bugs. Contrary to popular belief software
development isn't a matter of overcoming bugs... it's an engineering task.
Try (I'm trying to be helpful) reading the code you just posted... you
created a variable frmMainApp in the event handler. Where do you think that
variable will go when the event handler ends?
I think we are all wondering is it a password application you're writing
because so far you don't have that. Finish the application first and add a
password layer around it. No architect I know of designs the stairs to the
building "before" they have designed the building itself.
Finish frmMainApp()... have it operate without any worry about whether some
stranger has gained access (they won't have if you don't finish the app.)
Then when it is all finished post a single question (if a Google search
doesn't answer it) similar to "how do I add account/password verification to
my app?"
I may sound rude but I'm saving you 40 hours of posting questions. Nobody
wants to explain how to hide your splash screen when it starts the app
because nobody would do it that way. At least not "twice"
"Slow down" I don't know how many times I have suggested programmers
"program" by simply taking their fingers off the keyboard.
Tom