Hello Guys,
java.lang.ClassCastException: SLR.Data.Capture.main$_dataentries cannot be cast to java.lang.String[]
Can anyone steer me straight here - is the CSV file unable to save because one of the entries is an int and not a string ? is there a fix ?
Note - the TYPE line is rem'ed - It does appear in Process_globals and is there for clarity
java.lang.ClassCastException: SLR.Data.Capture.main$_dataentries cannot be cast to java.lang.String[]
Can anyone steer me straight here - is the CSV file unable to save because one of the entries is an int and not a string ? is there a fix ?
Note - the TYPE line is rem'ed - It does appear in Process_globals and is there for clarity
B4X:
Sub build_list_string()
'Type dataentries (firstname As String, surname As String, email As String, phoneno As String, company as string, score As Int)
Dim p As dataentries
p.firstname = first_name.Text
p.surname = surname.Text
p.email = email.Text
p.phoneno = telephone.Text
p.company = company.Text
p.score=score
data.Add(p)
data.SortType("score",True)
su.SaveCSV(File.DirRootExternal, filename &".csv",",",data)
End Sub