×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Adding an Inch symbol (") into a string expression
2

Adding an Inch symbol (") into a string expression

Adding an Inch symbol (") into a string expression

(OP)
Okay, so I am working with expressions, and have a need to type in   4.25" into a string expression, but it thinks that the " is part of the string statement and gives me an unmatched error. I have also tried to insert it as a char( " ), but I don't even know if that is correct as I have not been able to successfully use it.

Thanks!

RE: Adding an Inch symbol (") into a string expression

Change the expression to read:

CODE

"4.25" + char(34)

RE: Adding an Inch symbol (") into a string expression

OK, try using...

"4.25"+CHAR( 34 )+" TYPE 50 PIN"

...as the value of your Expression.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum:   http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Adding an Inch symbol (") into a string expression

(OP)
Okay, I figured char( " ) that nx gave me when I used the formula thing wasn't correct. And I was also trying to use & instead of +
Thanks!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources