To use add all you would need to be able to access the array with a single index to get a row, which is not possible.
You could build the string for each row before adding it.
Something like:
B4X:
For i=0 To 199
Dim LineStr As String = i&","
For j = 0 To 99
LineStr = LineStr & A(j,i)&","
Next
'Remove the last ","
LineStr=LineStr.SubString2(0,LineStr.Length-1)
CSVList.Add(LineStr)
Next
You may want to enclose each item in quotes which is common practice and can save issues where the data string may contain a comma:
B4X:
For i=0 To 199
Dim LineStr As String = QUOTE&i"E&","
For j = 0 To 99
LineStr = LineStr & QUOTE&A(j,i)"E&","
Next
'Remove the last ","
LineStr=LineStr.SubString2(0,LineStr.Length-1)
CSVList.Add(LineStr)
Next
Hi Stevel,
thanks for your prompt answer, it works, (of course). But Stringutils to save as csv file did not like that LineStr list format, for whatever reason. However, I could use File.writelist(....,LineStr) directly.
Thanks.