On my form I have a label with Name = "PART1"
.
In that label Text = "Company A"
.
What is the right way to get the result "Company A
" by referring to the label using the string "PART1
".
There are many labels on the form and I want to collect what has been entered in each label using:
for ( i = 1; i <= 100; i++ )
{
result = GetTheValue("PART" + i.ToString());
}