How can I generate this list in sequential pairs:
Array = Itens.text.Split(","[0]);
int qnt = Array .Length;
for (int i = 0; i < qnt; i++)
{
TextBox.Text = Array[i].text;
i++;
TextBox.Text = Array[i].text;
}
This way it does not work, plus your remove i++
the output is like this:
TextBox.text = Array[0];
TextBox.text = Array[0];
TextBox.text = Array[1];
TextBox.text = Array[1];
TextBox.text = Array[2];
TextBox.text = Array[2];
I wanted the output to look like this:
TextBox.text = Array[0];
TextBox.text = Array[1];
TextBox.text = Array[2];
TextBox.text = Array[3];
TextBox.text = Array[4];
TextBox.text = Array[5];
and etc, every loop
it rotate me that way.
If anyone can help me thank you!