Results 1 to 5 of 5

Thread: Need help with my phone book

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    3

    Exclamation Need help with my phone book

    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.

    Thanks again for figuring this out.

    Nubbie69
    Attached Files Attached Files

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    3
    thanks for the reply.

    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?

  4. #4
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    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

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Posts
    3
    got it to work.

    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.

    thanks for the realization...

    Nubbie69

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