BPak Active Member Licensed User Longtime User Mar 24, 2014 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 24, 2014 #2 See how it is implemented in this example: http://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/ Upvote 0
See how it is implemented in this example: http://www.b4x.com/android/forum/threads/janotherdatepicker-class.36778/