I'm trying to write some persistant values to a CSV file:
I'm getting this error:
SaveValues - java.lang.ClassCastException: java.lang.String
The values I'm adding are these:
ExtDir - /mnt/sdcard/Android/data/encoded.b4a/files/encoded/Alternate Pegs/Numbers
CatFile - Numbers.cat
BGDir - ""
BGFile - wood_grain.gif
Side - Right
Any suggestions as to what may be causing the cast error?
B4X:
Sub SaveValues
Dim su As StringUtils
Dim table As List
Try
table.Initialize
table.AddAll(Array As String("ExtDir",ExtPegDir))
table.AddAll(Array As String("CatFile",PegSet))
table.AddAll(Array As String("BGDir",ExtBGDir))
table.AddAll(Array As String("BGFile",CurrentBG))
table.AddAll(Array As String("Side",LeftOrRight))
su.SaveCSV(File.DirRootExternal&"/Android/data/encoded.b4a/files", "encoded.csv", ",", table)
Catch
Log("SaveValues - "&LastException.Message)
End Try
End Sub
I'm getting this error:
SaveValues - java.lang.ClassCastException: java.lang.String
The values I'm adding are these:
ExtDir - /mnt/sdcard/Android/data/encoded.b4a/files/encoded/Alternate Pegs/Numbers
CatFile - Numbers.cat
BGDir - ""
BGFile - wood_grain.gif
Side - Right
Any suggestions as to what may be causing the cast error?