Jump to content

Recommended Posts

Posted

In my lisp, I'm trying to input the paper size from my plotter... 18"x24" (ARCH C)

 

It keeps taking the " mark after the 18 as an input

 

When I change it to 18\"x24\" (ARCH C) it gives me the same problem.  

 

Any other suggestions on how to be able to use the inch mark in my lisp?

 

Thank you

Posted (edited)

Escaping the double-quotes using a single backslash escape character will cause the double-quotes to appear in the string (as opposed to being interpreted as string delimiters). Hence, you should use:

"18\"x24\" (ARCH C)"

 

Edited by Lee Mac
Posted

Thanks Lee...  I did have the " before and after.  It's still hanging up.  

 

What about the Chr 34 string.  Would it work for this?

 

This is what I need to get enter "18"x24" (ARCH C)" but it doesn't like the " after 18 and after 24

Posted
11 minutes ago, Pukenzz said:

Thanks Lee...  I did have the " before and after.  It's still hanging up.  

 

What about the Chr 34 string.  Would it work for this?

 

This is what I need to get enter "18"x24" (ARCH C)" but it doesn't like the " after 18 and after 24

In your example above you're missing the outer quotes: "18\"x24\" (ARCH C)"

Posted
27 minutes ago, Pukenzz said:

What about the Chr 34 string.  Would it work for this?

 

(chr 34) is the same as an escaped double-quote - observe:

_$ (= (chr 34) "\"")
T

 

Posted

Are you using strcat or trying to write as implied which doesnt work.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...