I have the value of Cell and Value in a for loop. For example when i=0, value will be "first value" which I want to assign to A0Text.text. When i=1, , value will be "second value" which I want to assign to A1Text.text.. –
for (int i = 0; i < BLOCKS.Count; i++)
{
//possible values of Cell are A0, A1, A2 ...
var Cell = currentBLOCKData["cell"];
var Value = currentBLOCKData["value"];
....
Then I have fields named with the same name as Cell
//possible cellName are - A0Text, A1text, A2Text .....
string cellName = Cell + "Text";
I want to assign
A0Text.text = First value in above field - Value
A1Text.text = 2nd value in above field - Value
A2Text.text = 3rd value in above field - Value
How can I make the above assigments?