B
BradC
(VB.NET 2002, Windows app).
I'm going to be provided a two-letter string like "BV" or "TP" that
represents a location.
I then need to perform some actions on several form controls that have names
derived from that location.
For example: lblBVimp, txtBVsignoff, txtBVsignoffdate, chkBV
Now I know i can do a "For Each XXX in myForm.Controls", If XXX.name =
blahblahblah,
but I've got several HUNDRED controls on the form.
Is there any better way?
Call me crazy, but I could have sworn that in the past I've been able to do
something like
myForm.controls("txt" & strLocation & "imp")
and have it find the control, but one of my coworkers says that has never
been possible.
What about GetIndexOf ? Can it accept a string as a parameter?
Thanks!!!
I'm going to be provided a two-letter string like "BV" or "TP" that
represents a location.
I then need to perform some actions on several form controls that have names
derived from that location.
For example: lblBVimp, txtBVsignoff, txtBVsignoffdate, chkBV
Now I know i can do a "For Each XXX in myForm.Controls", If XXX.name =
blahblahblah,
but I've got several HUNDRED controls on the form.
Is there any better way?
Call me crazy, but I could have sworn that in the past I've been able to do
something like
myForm.controls("txt" & strLocation & "imp")
and have it find the control, but one of my coworkers says that has never
been possible.
What about GetIndexOf ? Can it accept a string as a parameter?
Thanks!!!