M mozaharul Active Member Licensed User Oct 6, 2008 #1 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,
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,
Erel B4X founder Staff member Licensed User Longtime User Oct 6, 2008 #2 You can use: B4X: Control(tt).Visible = False See this tutorial: http://www.b4x.com/forum/tutorials/907-runtime-controls-manipulation.html
You can use: B4X: Control(tt).Visible = False See this tutorial: http://www.b4x.com/forum/tutorials/907-runtime-controls-manipulation.html
M mozaharul Active Member Licensed User Oct 6, 2008 #3 Hi Erel, Its not working as you suggested. I add the image having the error message for you. regards,
Hi Erel, Its not working as you suggested. I add the image having the error message for you. regards,
klaus Expert Licensed User Longtime User Oct 6, 2008 #4 You should use Control(uy&vy).Visible=false Best regards