Skip to main content
23-Emerald IV
November 17, 2014
Solved

Assign double quote character to a string parameter

  • November 17, 2014
  • 1 reply
  • 2426 views

Does anyone know of a way to assign a double quote to a string parameter via relations? I can manually create a new parameter and add a double quote to it, but not programmatically.

My current workaround is to manually create a parameter with a value of " and then use this parameter any time I need a double quote character.

DBL_QUOTE = " (manually created โ€“ doesnโ€™t work in a relation)

STRING_PARAM = DBL_QUOTE + "BLAH BLAH BLAH" + DBL_QUOTE

Yes, I NEED the double quote in the final string. The ASCII value (34) is critical.

Thanks!

Tom U.

Best answer by TomU

Answer, use single quotes around the double quote character.

STRING_PARAM = '"' + "BLAH BLAH BLAH" + '"'

Thanks to Don Anderson over at the PTCUser list for the answer.

1 reply

TomU23-Emerald IVAuthorAnswer
23-Emerald IV
November 18, 2014

Answer, use single quotes around the double quote character.

STRING_PARAM = '"' + "BLAH BLAH BLAH" + '"'

Thanks to Don Anderson over at the PTCUser list for the answer.