Visual Basic 2013

  • Shirley Lemmon
    Participant

    <span style=”color: #464646; font-family: ‘Open Sans’, Tahoma, Verdana, sans-serif; font-size: 14px;”>Is anyone else using Visual Basic 2013 this year? We have declared an array of records and are trying to populate the fields using a csv file. We have declared the array in the main program to be able to access it in a number of sub routines. Has anyone done anything similar? Do we need to declare parallel arrays instead of a record structure to achieve this?</span>

    Scott McBride
    Participant

     
    <p style=”margin: 0px; line-height: normal;”><span style=”background: white; margin: 0px; color: black; font-family: Consolas; font-size: 9.5pt;”><span style=”margin: 0px;”>   You should just refer to the record structure like… nameOfArray(index).fieldName in record?</span></span></p>
     

     

    Shirley Lemmon
    Participant

    Thank you Scott. Have you successfully achieved getting data into an array from a csv file?

    Scott McBride
    Participant

    Yes. However, I no longer have VB installed and cannot access the code…

    I am sure someone out there has some code.

    Its no different to parallel arrays, you just use the structure that you have created.

    Shirley Lemmon
    Participant

    Thanks Scott I thought that too, but it just doesn’t seem to be working with vb 2013.  I am currently giving up as we can just use parallel arrays for the coursework task  when  importing data from csv file.  Just annoying that it won’t work for array of records…Grrrr!

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.