I'm sure it's staring me in the face, but could someone tell me why this doesn't work:
It throws up a "String cannot be cast to" error when run.
Also could someone remind me how to display code within a forum message please!
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Dim RecData As List, su As StringUtils
RecData.Initialize
RecData.Add("Fred")
RecData.Add("Bill")
RecData.AddAll(Array As String("Fred","Bill","Joe"))
Log(File.dirapp)
su.SaveCSV(File.DirApp, "MyData.csv",",",RecData)
End Sub
It throws up a "String cannot be cast to" error when run.
Also could someone remind me how to display code within a forum message please!
Last edited: