Hi to all,
I can't understand where is my error.
After the line ' tx.text = "a" ', 'Wait for' call event _TextChanged but when event end the program don't continue.
I can't understand where is my error.
After the line ' tx.text = "a" ', 'Wait for' call event _TextChanged but when event end the program don't continue.
B4X:
Private Sub Process_Globals
Private frm As Form
Private tx As TextField
End Sub
Sub AppStart (Form1 As Form, Args() As String)
frm = Form1
tx.Initialize("tx")
frm.RootPane.AddNode(tx,0,0,600,200)
frm.Show
start
End Sub
Sub start
tx.Text = "a"
Wait For (tx) TextChanged (Old As String, New As String)
Log("After Text Changed")
End Sub
Sub tx_TextChanged (Old As String, New As String)
Log("Text Changed")
End Sub