Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ICsv - GetRowMS - and multistring
#1
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.
Code:
Copy      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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)