Ampersand in Label

Discussion in 'Questions (Windows Mobile)' started by Zenerdiode, May 8, 2009.

  1. Zenerdiode

    Zenerdiode Active Member Licensed User

    How do I show an ampersand in a label? :eek:

    Label1.Text="This & That"
    shows This _That
    Label1.Text="This " & Chr(39) & " That"
    shows This 'That
  2. maXim

    maXim Active Member Licensed User

    Hi Zenerdiode,

    try this:
    Label1.Text = "This && That"
  3. Zenerdiode

    Zenerdiode Active Member Licensed User

    :sign0161: Thank You.

    Is that a bug Erel? Or just the way it is? I thought the Chr(39) should have worked.
    Last edited: May 9, 2009
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is the behavior of the native label control.
    As of V6.80 the label control is actually a custom control and therefore you will not see this behavior. You can try it with the beta version.
  5. Aspire89

    Aspire89 Member Licensed User

    use chr(38)
  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