Well, you define a panel as usual. Then you define an array - as usual as well. My C-Script is a bit rusty, but it should be something like this:
Code:
var mypanels[10];


The you can assign your panels to the array.
Code:
mypanels[0] = my_first_panel;
mypanels[1] = my_second_panel;
// etc.


Finally you can read them out of the array.
Code:
PANEL* p;
p = mypanels[0];
p.visible = off;


Just put that last code fragment in a loop.



Always learn from history, to be sure you make the same mistakes again...