JazzBass
Nov 21st, 1999, 06:22 PM
Hi gang,
I have a INI file that I use to store registered users. The format is like this:
[Users]
user1=Name
user2=Name
user3=Name
user4=Name
and so on....
I use a loop to get all the names and loads them into a combo box.
Now here's the problem. I give the user a option to delete their name. I tried deleting the entire key (user2) and now my loop will stop at user1 and not read the rest of the names.
I can get the default string to come up as "user deleted" or even write that out to the ini file and it works fine, but I would prefer not to see that in the combo box.
I downloaded a zip file from Ken Whiteman and he has a routine to delete the null value. I don't quite understand it.
Could someone please give me some sort of example how I can do what I'm trying to do or if anyone has downloaded that example, could someone explain to me the logic behind it.
Sorry for the long post. Just wanted to be as clear as possible.
Thanks,
JazzBass
------------------
21 yr old beginner VB Programmer
VB 6 Professional @ Home
VB 3 Professional @ the Office
I have a INI file that I use to store registered users. The format is like this:
[Users]
user1=Name
user2=Name
user3=Name
user4=Name
and so on....
I use a loop to get all the names and loads them into a combo box.
Now here's the problem. I give the user a option to delete their name. I tried deleting the entire key (user2) and now my loop will stop at user1 and not read the rest of the names.
I can get the default string to come up as "user deleted" or even write that out to the ini file and it works fine, but I would prefer not to see that in the combo box.
I downloaded a zip file from Ken Whiteman and he has a routine to delete the null value. I don't quite understand it.
Could someone please give me some sort of example how I can do what I'm trying to do or if anyone has downloaded that example, could someone explain to me the logic behind it.
Sorry for the long post. Just wanted to be as clear as possible.
Thanks,
JazzBass
------------------
21 yr old beginner VB Programmer
VB 6 Professional @ Home
VB 3 Professional @ the Office