Results 1 to 5 of 5

Thread: Please help, been stuck 3 days (3rd try)

  1. #1

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103

    Unhappy Please help, been stuck 3 days (3rd try)

    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"
    Attached Files Attached Files

  2. #2
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Re: Please help, been stuck 3 days (3rd try)

    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

  3. #3

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    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

    Thanks!

  4. #4

    Thread Starter
    Lively Member nemesys777's Avatar
    Join Date
    Nov 2001
    Posts
    103
    More Detail::::

    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.

  5. #5
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611
    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

    Thanks!
    Looks as though you are having a tough time

    This should help

    http://msdn.microsoft.com/library/de...refctInStr.asp
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width