W woodpecker Member Licensed User Longtime User Sep 25, 2011 #1 Hi folks, Trying to change all button colours at the same time from an event, eg Button*.color = 0,0,0 where * is a wildcard for 30 buttons. Doesn't work though, also tried:- for x = 1 to 30 Buttonx.color = 0,0,0 next x Doesn't work, is there a wildcard or way to select all buttons for change at once? Thanks.
Hi folks, Trying to change all button colours at the same time from an event, eg Button*.color = 0,0,0 where * is a wildcard for 30 buttons. Doesn't work though, also tried:- for x = 1 to 30 Buttonx.color = 0,0,0 next x Doesn't work, is there a wildcard or way to select all buttons for change at once? Thanks.
klaus Expert Licensed User Longtime User Sep 25, 2011 #2 You could use: B4X: For x = 1 to 30 Button("Button"&x).Color = RGB(0,0,0) Next Best regards.