I can't find information about this. I need to make a lot of items, and it looks like this:
Bar01.Value = data[0];
Bar02.Value = data[1];
Bar03.Value = data[2];
Bar04.Value = data[3];
Bar05.Value = data[4];
Bar06.Value = data[5];
...
Bar99999.Value = data[99998]
etc.
Is there a way to make a string for it like
for(int i=0;i<max;i++)
string s = "Bar"+i;
//do stuff
So that it would be shorter ?