pazzokli Active Member Licensed User Longtime User Jan 9, 2019 #1 Hi, in my layout I've 24 buttons that must do the same action when I click on it (change color for ex) I should create 24 sub ("button-name_click") with the same code inside it. There is a smart way? Similar to array in the old VB6 (button(x).color=RED) Thanks
Hi, in my layout I've 24 buttons that must do the same action when I click on it (change color for ex) I should create 24 sub ("button-name_click") with the same code inside it. There is a smart way? Similar to array in the old VB6 (button(x).color=RED) Thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2019 #2 pazzokli said: I should create 24 sub ("button-name_click") with the same code inside it. Click to expand... Very bad. pazzokli said: There is a smart way? Click to expand... There are many ways. See this video tutorial: Upvote 0
pazzokli said: I should create 24 sub ("button-name_click") with the same code inside it. Click to expand... Very bad. pazzokli said: There is a smart way? Click to expand... There are many ways. See this video tutorial: