Here is the relevant code:
It normally works without problem, but this is what happened today with one particular csv file:
The csv file looks just the same as the other csv files which do not produce the error. All were produced the same way, indeed they were all exported from the same Excel spreadsheet. It looks perfectly well-formed to me (in NotePad).
Maybe I'm being particularly thick-headed this evening, but I can't see how any "length" parameter comes into this, or what there can possibly be that's less than zero. What is it that has a length parameter? The csv file is perfectly well-formed.
Can anyone please kindly give me a clue what might be wrong?
Caravelle
B4X:
OpenDialog1.Filter = "csv Files|*.csv"
If OpenDialog1.Show <> cCancel Then
tblImport.LoadCSV(OpenDialog1.File, ",", False, True)
End If
It normally works without problem, but this is what happened today with one particular csv file:
tblImport.LoadCSV(OpenDialog1.File, ",", True, True)
Error description: length cannot be less than zero.
Parameter name: length
The csv file looks just the same as the other csv files which do not produce the error. All were produced the same way, indeed they were all exported from the same Excel spreadsheet. It looks perfectly well-formed to me (in NotePad).
Maybe I'm being particularly thick-headed this evening, but I can't see how any "length" parameter comes into this, or what there can possibly be that's less than zero. What is it that has a length parameter? The csv file is perfectly well-formed.
Can anyone please kindly give me a clue what might be wrong?
Caravelle