Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Visual Basic and CSV files help

    Hello,

    I'm wondering if anybody could help me; I have been given the task of creating an address book search system. I am to make it as simple to use as possible, and my coding skills aren't brilliant, I've decided to use a console Application, and the Visual basic programming language.

    The problem is this program has to open a .CSV file and be able to search through it, bringing up results that match the criteria, such as search by last name, or date of birth.

    I'm aware of bubble sort and things like that, I've even dabbled with Stream Reader. Looking all over the web I simply can't find a solution to my problem. I wonder if anybody could help shred light onto the situation.

    Thank's to anybody that can help.

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,742
    Thanks
    41
    Thanked 191 Times in 190 Posts
    streamread the entire CSV in and the split it on vbCrLf (visual basic carriage return)
    then make an interface
    then make a class (off that interface) and set the properties accordingly
    then make a generic list for sorting

    it's going to be a lot more in depth than that, but you asked for someone to shed some light

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •