Results 1 to 5 of 5

Thread: comparing a value of one file. with value user types in

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3

    Question

    As a user signs in. I write that information
    to a file. I then want to take that name
    and compare it with the user that have
    access to the program. How can I do this?
    I am just learn. I am having trouble
    comparing the names. and sending back
    an ok. Please help.
    Rasnic
    rasnic

  2. #2
    Member
    Join Date
    Jun 2000
    Location
    Perth Western Australia
    Posts
    41

    Question

    Will your list of users be in a database or perhaps a text file?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    3

    Unhappy User file

    User file will be a file with a cfg
    extention. It could also be a text file.

    I was having trouble making both files
    be in a database. So, I am trying it
    this way. Thanks, Rasnic
    rasnic

  4. #4
    Addicted Member
    Join Date
    Jan 2000
    Location
    Oshkosh, WI
    Posts
    163
    You could use an ini file and then use VB's functions to Read and write to the file.

    You should probably think twice about using a file for security. Unless the file is encrypted it would'nt take long for a user to figure out how to defeat your security. You should consider using a database and then control access to the database.

    Glenn D
    Development/Analyst

  5. #5
    Member
    Join Date
    Jun 2000
    Location
    Perth Western Australia
    Posts
    41

    Cool

    Obviously I'm not sure of your full requiremnets, but if you need Users to log in and security then it sounds like a multi user/network application. I would suggest you create an ActiveX.DLL which encapsulates a resource file with your Users names.
    This has many benefits as it is then a single source of the user names and it is more secure than external files.

    You have not provided an e-mail address but if you drop me an e-mail I will return some code to show you how to do it.

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