If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Accessing objects using their name reference through string variables

Actualy I am trying exactely the opposite, to get a ease to mantain code. I used the name of the components in my form to know the namo of the refered other components, as so, just for an example, I have a check box named "check_01_hora_1011" and also I have a radio button named "prim_dia_radio", when both are selected, a textbox named "banda_prim_1011" must be visible and enable to be fullfiled, and, if you noticed, I can have the name of the right textbox just combinig peaces of the other two controls, I take the "1011" substring from the check box name and the "prim" substring from the radio name and then I can get the "banda_PRIM_1011" textbox name... The trik I have to do than is how to make "banda_prim_1011".text ou other property to run properly. Do you got it?