I'm using Visual Basic 5, so I cannot use the splt function. Most of the help that I've got has used that function. I declare my subs using option explicit. In my program: the users type in a name and password. I need to compare the inputted user name and password to a list of accounts in a text file. I must use a text file. I have uploaded a copy of my account file. It will be helpful to know how to read the text file or use the database control with connection as text.
Either way I have to figure out how to compare the inputted strings with the accounts in the text file for validation. Please help. I've been working on this for 3 days. I'm desperate. Begging..... On my knees.... Please God help me!..................
Sorry, just frustrated with this code.
Thanks in advance.
Originally posted by nemesys777 I'm using Visual Basic 5, so I cannot use the splt function. Most of the help that I've got has used that function. I declare my subs using option explicit. In my program: the users type in a name and password. I need to compare the inputted user name and password to a list of accounts in a text file. I must use a text file. I have uploaded a copy of my account file. It will be helpful to know how to read the text file or use the database control with connection as text.
Either way I have to figure out how to compare the inputted strings with the accounts in the text file for validation. Please help. I've been working on this for 3 days. I'm desperate. Begging..... On my knees.... Please God help me!..................
Sorry, just frustrated with this code.
Thanks in advance.
Nemesys
"The text file is below"
I don't understand can't you do a line input in a loop reading the data file to get each line of text, use an instr to do the comparison with the text box?
Looking for a friendly intelligent chat forum? Visit the white-hart.net
I really dont know how to do anything you just said. I have done alot of other types of programming, but never had to do this "instr" stuff....
I'm stupid I guess... Could you give an example...
I'm not comparing to a textbox, I'm comparing to a string
One string = username
2nd string = userpassword
The program I need this validation for is a server "That I'm writing"
The client is Ultima Online, a game I did not write. :P
I'm building an emulator for This game. The users log into my server and play the game online with hundreads of other users.
When they log on....
They type in a username and password, and send it to my server.
I have intercepted the bytes they send, and have converted the bytes into strings. One string being the account name, and the other the password.
I need to compare the username and password from the client, to my textfile that contains all the accounts and passwords of the registered users. I have tried and tried, but I cannot seem to compare this right. Thanks again, and I hope this clarifies my project.
Originally posted by nemesys777 I really dont know how to do anything you just said. I have done alot of other types of programming, but never had to do this "instr" stuff....
I'm stupid I guess... Could you give an example...
I'm not comparing to a textbox, I'm comparing to a string
One string = username
2nd string = userpassword