counting the amount of items in a csv
Sarah Reichelt
sarahr at genesearch.com.au
Mon Jan 31 18:32:12 EST 2005
> I am interested in counting the amount of items in the first line of a
> csv.
>
> How would I do this?
>
set the itemDelimiter to comma -- which it already is unless you
changed it earlier in the same handler
get the number of items in line 1 of myCSV
This will work unless there are commas inside quotes somewhere inside
the line. If there are, check the archives for a discussion not long
ago about parsing CSVs.
Cheers,
Sarah
More information about the use-livecode
mailing list