Controls name

Discussion in 'Questions (Windows Mobile)' started by PepSoft, Dec 13, 2007.

  1. PepSoft

    PepSoft Member Licensed User

    What are the conditions for control names?

    In IDE:
    "TextBox?" or "TextBox#" are not valid names.
    message: "Invalid Control Name"

    but in runtime:

    runs correct.

    There are any problem whith Add Controls whith punctuation symbol in the name?


    PD: Sorry for my English
  2. Erel

    Erel Administrator Staff Member Licensed User

    You should only use letters, numbers and underscore character.
    Controls names (and variables names) must also begin with a letter.
    The AddObjects keywords do not test this. It could cause all kinds of strange errors.
  3. PepSoft

    PepSoft Member Licensed User

    Control Names

    Thanks Erel.
    Sorry, Can you give me an example name with underscore character?
  4. Erel

    Erel Administrator Staff Member Licensed User

    Sorry. You are right. :signOops:
    Controls do not support underscores.
  5. willisgt

    willisgt Active Member Licensed User

    I have dynamically created and referenced controls with a space character as part of the name, without any problems.


  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