warwound Expert Licensed User Longtime User Jan 16, 2012 #1 Hi. If i create a View programmatically how can i change the View's EventName from it's default value - the default value being the View's name? For example, i create an array of Buttons (programmatically) and want a single Sub to be called for each Button's click event. Thanks. Martin.
Hi. If i create a View programmatically how can i change the View's EventName from it's default value - the default value being the View's name? For example, i create an array of Buttons (programmatically) and want a single Sub to be called for each Button's click event. Thanks. Martin.
Erel B4X founder Staff member Licensed User Longtime User Jan 16, 2012 #2 The event name is set when you initialize the view. In fact there is no default value. See this tutorial: Tick-Tack-Toe: working with arrays of views Upvote 0
The event name is set when you initialize the view. In fact there is no default value. See this tutorial: Tick-Tack-Toe: working with arrays of views
stevel05 Expert Licensed User Longtime User Jan 16, 2012 #3 Try this: B4X: Dim Buttons(10) As Object For i = 0 To 9 Dim B As Button B.Initialize("SubToCall") Buttons(i)=B Next Steve Upvote 0
Try this: B4X: Dim Buttons(10) As Object For i = 0 To 9 Dim B As Button B.Initialize("SubToCall") Buttons(i)=B Next Steve
warwound Expert Licensed User Longtime User Jan 16, 2012 #4 Thanks that answers my question. Martin. Upvote 0