I have 10 text boxes namely TB1, TB2, TB3, TB4 and so on.. to TB10
I want to store them into a single string value named toBeStored.
Now I m doing the manual way
String toBeStored=null;
tobeStored=TB1.text.toString();
tobeStored+=TB2.text.toString();
and so on..
I want to make a for loop and add them
something like this..
for(int i=1;i<11;i++)
{
toBeStored+=TB+i+.text.ToString()+" ";
}
I know that is wrong.. anything to make it right?
No. Because you defined the text boxes as variables there simply is no enumerator defined.
You could define your own enumerator. In the simpliest case that is as simple as