I would like to be able to assemble a string based on different conditions and, when done, use that string as a control name. Can this be done in VB? For example, if I have three controls: lblMon, lblTue, & lblWed; I would like to create the name using strings such as:<br>
strDay = "Wed" (where under different conditions I would assign strDay = "Tue" or strDay = "Mon")<br>
strControlName = "lbl" + strDay<br>
and then use the strControlName string to assign the caption for, in this case, lblWed. Any ideas?
strDay = "Wed" (where under different conditions I would assign strDay = "Tue" or strDay = "Mon")<br>
strControlName = "lbl" + strDay<br>
and then use the strControlName string to assign the caption for, in this case, lblWed. Any ideas?