05-17-2012, 09:09 PM
I'm having trouble clearing errors on GetRowMS.
Scenario: I want to reading a csv file into icsv1 then process each line, throwing some away, modifying others.
I want to use GetRowMS to fetch a row from icsv1, muck it about, and add it to icsv2. Basically I'd rather write it this way rather that keep adjusting my tracking index on icsv1. A lazy "for" loop on icvs1 looping through all the rows.
???? marks where I need help.
Thanks,
-dana
Scenario: I want to reading a csv file into icsv1 then process each line, throwing some away, modifying others.
I want to use GetRowMS to fetch a row from icsv1, muck it about, and add it to icsv2. Basically I'd rather write it this way rather that keep adjusting my tracking index on icsv1. A lazy "for" loop on icvs1 looping through all the rows.
???? marks where I need help.
ICsv icsv1=CreateCsv()
icsv1.Separator=","
icsv1.FromFile("C:\testdata.txt")
int nr=sFileBuffer.RowCount
int nc=sFileBuffer.ColumnCount
ICsv icsv2=CreateCsv()
icsv2.Separator=","
???? declaration for multistring transfer row holder. Real variable decl WITHOUT using magical _s ????
int r c
for r 0 nr
;;.......
icsv1.GetRowMS(r ????multistring????)
;;.......
icsv2.AddRowMS(-1 nc ????multistring????)
;;.......
Thanks,
-dana