I am almost 100% sure this is possible but I can't seem to get it to work.
I have a for loop and I am trying to use the Loop iterator to reference the value in a text box.
I have 5 text boxes that I want to grab the text out of the box when the for loop increments. i tried it with brackets around the variable but I get and error stating 'txtUnit1Tag' does not exist in the current context. How can I reference the text box txtUnit1Tag1 using i ?
for(int i=1; i<5; i++)
value = txtUnit1Tag[i].Text;