PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Using variable as form field name
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
Using variable as form field name
![]() |
Using variable as form field name |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi
I have two fields field1 and field2 on my form. Is there a way that the field names can be accessed via variable so that choice of the actual field to access is decided at runtime? Thanks Regards |
|
|
|
#2 |
|
Guest
Posts: n/a
|
"John" <John@nospam.infovis.co.uk> wrote in
news:#nUS2SfNHHA.4604@TK2MSFTNGP06.phx.gbl: > I have two fields field1 and field2 on my form. Is there a way that > the field names can be accessed via variable so that choice of the > actual field to access is decided at runtime? Yes, use a recursive function to iterate through all the controls on your form to find the control with the name. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

