Skip to main content

Escaping Quotation Marks

Escaping Quotation Marks

You can include a " (double quote) character as a literal within a string by preceding it with another double quote character:

 SET string = "This string has ""quotes"" in it."
 WRITE string

There are no other escape character sequences within ObjectScript string literals.

Note that literal quotation marks are specified using other escape sequences in other InterSystems software. Refer to the $ZCONVERT function for a table of these escape sequences.

FeedbackOpens in a new tab