How to insert the generated text into code ?

Discussion in 'Questions (Windows Mobile)' started by mozaharul, Oct 6, 2008.

  1. mozaharul

    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,
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. mozaharul

    mozaharul Active Member Licensed User

    Hi Erel,

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

    regards,
     
  4. klaus

    klaus Expert Licensed User

    You should use

    Control(uy&vy).Visible=false

    Best regards
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice