Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private TextArea1 As B4XView
Private TextField1 As B4XView
Private TextField2 As B4XView
Private TextServiceDate As B4XView
Private TextViews As Map
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Form")
MainForm.Show
TextViews = CreateMap("TextField1": TextField1, "TextField2": TextField2, "TextServiceDate": TextServiceDate, "TextArea1": TextArea1)
PrintingModule.Initialize(10, 10)
End Sub
Private Sub BtnStore_Click
PrintingModule.SSCells(2, 0) = TextView("TextServiceDate").Text
Log($"Value stored in SSCells(2, 0)=${PrintingModule.SSCells(2, 0)}"$)
PrintingModule.SSCells(2, 2) = TextView("TextArea1").Text
Log($"Value stored in SSCells(2, 2)=${PrintingModule.SSCells(2, 2)}"$)
End Sub
Private Sub TextView (Key As String) As B4XView
Return TextViews.Get(Key)
End Sub