Skip to main content
Oct 1, 2015 9:32 AM UTC
Solved

Characters (") in repeat region relations

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

Oct 1, 2015 12:16 PM UTC

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

Oct 1, 2015 12:16 PM UTC

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

Dec 6, 2018 2:59 PM UTC

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é

Dec 6, 2018 3:12 PM UTC

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.

Dec 6, 2018 4:39 PM UTC

@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