How to insert the generated text into code ?

mozaharul

Active Member
Licensed User
Hi,

I used some variables to hold values like:

uy=”panel2”
vy="lbl"

then:

tt=uy&vy

and:

uu=tt&"."&"visible"&"="&"False"

Msgbox(uu); shows “panel2lbl.visible=False”, how is it possible to use “panel2lbl.visible=False” in code to make the visibility of “panel2lbl” false ?

I tried in code as: tt&"."&"visible"&"="&"False", but it gives Syntax Error.

Regards,
 

mozaharul

Active Member
Licensed User
Hi Erel,

Its not working as you suggested.
I add the image having the error message for you.

regards,
 
Top