Hi,
I use this code with B4A I don't have a problem, but with B4I I get this error when there is too much data. I don't understand, should I recode the loading of a CSV file and not use LoadCSV ?
Error occurred on line: 2791 (B4XMainPage)
-[__NSCFString substringWithRange:]: Range {5497, 18446744073709546118} out of bounds; string length 70968
B4X:
Dim su As StringUtils
Dim list As List
list.Initialize
list=su.LoadCSV(File.DirLibrary, "api.csv",";")
if m lines read ok and n lines don't,
then use a binary search to locate which line number m+1 .. n the problem begins at,
then have a very close look at that line
It is difficult to modify this file because this data comes directly from an API. I no longer have a problem using CSV Parser. I think there is a bug on LoadCSV on B4i because on B4a, I have the same code and I have no problem.