Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private xui As XUI
Private Button1 As B4XView
Private Button2 As Button
Private label1, label2 As Label
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
End Sub
Sub Button1_Click
xui.MsgboxAsync("Hello World!", "B4X")
label1.Text = "Label 1"
label2.Text = "label 2"
End Sub
Sub Button2_Click
label1.Text = ""
label2.Text = ""
End Sub