Thanks James
I'll stop looking for a way, I can use an array with all the IDs in.
The panel controls a comms matrix and the buttons are lit individually by strings that comes back from the matrix. The first three characters of the button ID determine the on (and off) colour of the button - there are a number of button types that share the same colouring. I was looking to set initial states of some of the button types, being able to loop through the panel components would be a neat way of doing it.
Thanks again,
Martin
#DashBoard