I would like to use the index from a for loop for dynamic variables.
how can you add the index value (i) to a name of the variable?
instead of ....
Code: Select all
selectArt01.Visible = true;
selectArt02.Visible = true;
selectArt03.Visible = true;
selectArt04.Visible = true;
selectArt05.Visible = true;
Code: Select all
for (int i = 1; i < 5; i++)
selectArt + (i).Visible = true;
best regards
steven