Home AMXForums Archive Threads Residential Forum

Text display of single quote

RicardoSiqueiraRicardoSiqueira Junior MemberPosts: 373
I haven't done this in a while. Is there a way to display a single quote inside a text message sent to a touch panel. I need to show the text: Cameron's Sat on a text box in AMX touch panels, but since the single quote is used to define the start and end of the text message. Is there a way around it?

Here is my command:

SEND_COMMAND vTPFamily, "'@TXT',1,'Camerons Sat'"

But somehow I need to be:

SEND_COMMAND vTPFamily, "'@TXT',1,'Cameron's Sat'" * When I add the ' it ends the message and I get an error

Any ideas? Thanks!

Comments

  • Joe HebertJoe Hebert Junior Member Posts: 2,154
    I haven't done this in a while. Is there a way to display a single quote inside a text message sent to a touch panel. I need to show the text: Cameron's Sat on a text box in AMX touch panels, but since the single quote is used to define the start and end of the text message. Is there a way around it?

    Here is my command:

    SEND_COMMAND vTPFamily, "'@TXT',1,'Camerons Sat'"

    But somehow I need to be:

    SEND_COMMAND vTPFamily, "'@TXT',1,'Cameron's Sat'" * When I add the ' it ends the message and I get an error

    Any ideas? Thanks!

    Escape it with another ' like this:
    Cameron''s
    

    That's two single quotes not one double quote after the n in Cameron.
  • RicardoSiqueiraRicardoSiqueira Junior Member Posts: 373
    Thanks, Joe Hebert! You've saved my day!
Sign In or Register to comment.