Home AMX User Forum AMXForums Archive Threads Residential Forum
Options

Text display of single quote

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

  • Options
    Joe HebertJoe Hebert Posts: 2,159
    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.
  • Options
    Thanks, Joe Hebert! You've saved my day!
Sign In or Register to comment.