canalrun Well-Known Member Licensed User Longtime User Feb 10, 2013 #1 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. Code: Copy Dim B As Button B.Initialize("SubToCall") Is it possible to later change a view's event name? Something like: Code: Copy B.EventName = "NewSubToCall" Thanks, Barry.
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. Code: Copy Dim B As Button B.Initialize("SubToCall") Is it possible to later change a view's event name? Something like: Code: Copy B.EventName = "NewSubToCall" Thanks, Barry.
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2013 #2 It is not possible to change this property. However you can use the same value for many views. Tick-Tack-Toe: working with arrays of views Upvote 0
It is not possible to change this property. However you can use the same value for many views. Tick-Tack-Toe: working with arrays of views