Hello,
In order to allow some code reuse, I wonder if it is possible to set the EventName of a view (button) after it is initialized or created in the Designer.
- The Designer has the "Event Name" property.
- When a view is initialized the EventName is passed as a parameter.
Is it possible to later change a view's event name? Something like:
Thanks,
Barry.
In order to allow some code reuse, I wonder if it is possible to set the EventName of a view (button) after it is initialized or created in the Designer.
- The Designer has the "Event Name" property.
- When a view is initialized the EventName is passed as a parameter.
B4X:
Dim B As Button
B.Initialize("SubToCall")
Is it possible to later change a view's event name? Something like:
B4X:
B.EventName = "NewSubToCall"
Thanks,
Barry.