G
Guest
I have a screen which has as number of textboxes on a screen which I wish to
initialise using a loop. The textboxes are named textBox1, textBox2 etc. I
hoped I hoped that I could address the component as I could in Java, VB6 or
JavaScript in the folllowing manner :
for (int x = 1; x < max;x++)
{
Form1.("textBox" + x.ToString()).Text = getDetails(x);
}
where getDetails(x) returns the appropriate Text. However I have been
unable to find any syntax which will allow me to do this.
Any Ideas?
initialise using a loop. The textboxes are named textBox1, textBox2 etc. I
hoped I hoped that I could address the component as I could in Java, VB6 or
JavaScript in the folllowing manner :
for (int x = 1; x < max;x++)
{
Form1.("textBox" + x.ToString()).Text = getDetails(x);
}
where getDetails(x) returns the appropriate Text. However I have been
unable to find any syntax which will allow me to do this.
Any Ideas?