Skip to main content
2-Explorer
October 1, 2015
Solved

Characters (") in repeat region relations

  • October 1, 2015
  • 7 replies
  • 4377 views

Hello,

I am able to set relations in repeat region as below:

if asm_mbr_name == "PRT1111"

CAD_SAP_PLM_DESC = "42 Die Components"

endif

I would like to understand how to use (") into value of CAD_SAP_PLM_DESC. My scenario is to set value of 42" Die components. As soon as I put below line in relation, It does not work:

if asm_mbr_name == "PRT1111"

CAD_SAP_PLM_DESC = "42" Die Components"

endif

Thank you in advance.

Regards

Ketan

Best answer by RonSt.Pierre

CAD_SAP_PLM_DESC = '42' +'" ' + 'Die Components'

Need to change the type of container, in otherwords, I swapped the double quote to a single to capture the text fields so that I can capture the double quote as text

7 replies

12-Amethyst
October 1, 2015

CAD_SAP_PLM_DESC = '42' +'" ' + 'Die Components'

Need to change the type of container, in otherwords, I swapped the double quote to a single to capture the text fields so that I can capture the double quote as text

3-Newcomer
December 6, 2018

Instead of using ' or ", can I use another character to type

CAD_SAP_PLM_DESC = ¿l'arbre mesure 42"¿

 

to avoid writing

CAD_SAP_PLM_DESC = "l'arbre mesure " + '42"'

 

the desired result is (l'arbre mesure 42")

 

Thank you

Mathieu Paillé

23-Emerald III
December 6, 2018

No, it is coded that strings are designated with a ' or ". You can use the ' to designate the string and then use the " for the inch symbol within the string.

 

CAD_SAP_PLM_DESC = 'l'+"'"+'arbre mesure 42"'

single quote around the l, then double quote the apostrophe and single quote the remainder of the string.

Patriot_1776
22-Sapphire II
December 6, 2018

@BenLoosli  Are the ' and " interchangeable and function exactly the same then?  I've currently been using the ", as in "," to put a comma in.

 

Grazie!

 

Frank