I have 10 text fields, namely TB1, TB2, TB3, TB4, etc. on TB10
I want to save them in a single string value with a name in BeStored.
Now i do the manual way
String toBeStored=null;
tobeStored=TB1.text.toString();
tobeStored+=TB2.text.toString();
etc.
I want to create a for loop and add them
something like that..
for(int i=1;i<11;i++)
{
toBeStored+=TB+i+.text.ToString()+" ";
}
I know this is wrong .. everything to do it right?
source
share