I don't know why I'm getting this error because it was working before and I only added some columns to the csv file. Here's what I did.
In my access database I've created a query that extracts data to a .csv file the original query worked just fine I would email the file to my android device and save it in the download directory. My program would copy that file to the DirDefaultExternal with this code.
The program would then run this code
This was working fine until I add some columns to the query that extracts to the .csv file now when the above line is executed I get the error "table = su.LoadCSV(File.DirDefaultExternal, "MBRS.csv", ",") java.lang.StringIndexOUtOfBoundsException: Length=48 index=1"
I tried to attach the .csv file but I get an invalid file when I try and upload it.
What do you need to help me find out what I did to get his error.
In my access database I've created a query that extracts data to a .csv file the original query worked just fine I would email the file to my android device and save it in the download directory. My program would copy that file to the DirDefaultExternal with this code.
B4X:
If File.Exists(File.DirRootExternal,"download/MBRS.csv") = True Then
File.Copy(File.DirRootExternal,"download/MBRS.csv",File.DirDefaultExternal, "MBRS.csv")
End If
B4X:
table = su.LoadCSV(File.DirDefaultExternal, "MBRS.csv", ",")
I tried to attach the .csv file but I get an invalid file when I try and upload it.
What do you need to help me find out what I did to get his error.
Last edited: