Add Header Row to exported CSV file
  • JeffGrant
    Posts:32
    Joined:Thu Sep 20, 2018 3:38 pm
    Location:Sydney Australia
    Add Header Row to exported CSV file

    by JeffGrant » Tue Nov 20, 2018 8:27 am

    Hi,

    I have a written a script which exports the fields I require to a csv file.
    No Drama.

    How to add a header row to the export file so the destination program knows what the field heading are for import mapping purposes.

    I assume Row 1 of the array should be added before the file is written out?

    Thanks
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Tue Nov 20, 2018 12:08 pm

    If you've written a script to write a CSV file manually, why not make the first row the headers?

    It depends, of course, on how you've written the script. Can you post an example of what you're doing?
  • JeffGrant
    Posts:32
    Joined:Thu Sep 20, 2018 3:38 pm
    Location:Sydney Australia

    by JeffGrant » Tue Nov 20, 2018 12:14 pm

    Thank. I actually solved this about 1.3 minutes after posting this.

    But I thought I delete this post so didn't look silly. Guess I missed that one.. :-(

Who is online

Users browsing this forum: No registered users and 5 guests