My ReadList and WriteList lines are showing a missing parameter error msg. From all the examples I have seen for ReadList/WriteList my lines look correct, so I don't know why I am getting that error msg.
Thanks for any help...
Thanks for any help...
B4X:
#Region Project Attributes
#MainFormWidth: 600
#MainFormHeight: 600
#End Region
Sub Process_Globals
Private MainForm As Form
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
'MainForm.RootPane.LoadLayout("Layout1") 'Load the layout file.
MainForm.Show
Dim list1 As List
list1 = File.ReadList(File.DirData, "List.txt")
list1.Set(0, "xxxx")
list1.Set(1, "zzzz")
File.WriteList(File.DirData, "List.txt", list1)
End Sub
'Return true to allow the default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
Return True
End Sub