Interate with objects

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi can i iterate with objects ? i mean, if i have button1, button2, button3
and i wanna change it´s text, can i do something like this ?

for(int i = 0;i < 3;i++)
this.button[i].text = "Text = " + i;

Thanks in advance,

Victor


.


Quantcast