B4J Question Respond to an event in another Code Module

BPak

Active Member
Licensed User
Longtime User
A control created in a Code Module has an event.

The controls are loaded into a Table View in a Main Window Module.

How can I get at the Event in the Main window when the control is used?

Code Module:
B4X:
....
....
Dim txt6 As TextField
txt6.Initialize("loced")
txt6.Text = cur.GetString2(col)
values(col) = txt6
....
....

Main window:
B4X:
Sub loced_TextChanged(Old As String, New As String)
' Log(New)
End Sub
 
Top