CAPITAL Office Business Software
CAPITAL Support Forum
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
Add Header Row to exported CSV file

 
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation
View previous topic :: View next topic  
Author Message
JeffGrant



Joined: 20 Sep 2018
Posts: 14
Location: Sydney Australia

PostPosted: Tue Nov 20, 2018 8:27 am    Post subject: Add Header Row to exported CSV file Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Tue Nov 20, 2018 12:08 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
JeffGrant



Joined: 20 Sep 2018
Posts: 14
Location: Sydney Australia

PostPosted: Tue Nov 20, 2018 12:14 pm    Post subject: Reply with quote

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.. Sad
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB Template by Vereor
Protected by Anti-Spam ACP