Click to See Complete Forum and Search --> : comparing a value of one file. with value user types in
Richi
Jul 16th, 2000, 08:56 PM
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
CGTS
Jul 16th, 2000, 11:52 PM
Will your list of users be in a database or perhaps a text file?
Richi
Jul 17th, 2000, 05:57 AM
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
Glenn
Jul 17th, 2000, 03:25 PM
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.
:):)
CGTS
Jul 17th, 2000, 09:32 PM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.