Hey,
I really need help with this code. I cant seem to find the problem this. I can add people to the text file fine, but when I try to use my search or delete options, I get an error. I do not know why I recieve it and I dont know how to fix whatever the debugger is trying to tell me.
Please download my code and try to help me out. If it is easier to just post my code on the forum in text, then please tell me.
Your main problem is not checking for inputs and then dealing the phone numbers as Integers. I dont know why you do CInt() on the phone numbers and why dont you treat them as text. By the way why dont you use a comma separeted text? Then it maybe easier to deal with each entry.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
as you can tell, i am a basic vb.net user. learning from the books and internet, i only assumed the text file was the easiest way to read things since they use them in examples all the time. Am I able to read the .CSV file the same way as a text file?
and do you know why it crashes when I search or delete?
You can just add your entries to a text files and separate them with comma. The problems I faced with your program is that it tries t odo type change CInt on some numbers that are too long to be integer. But you may experience other problems too.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
it actually ended up being a couple of small things....the major problem was the integer thing...that was very dumb of me...i should have kept them as strings.