Author Topic: how to strcat a double quote  (Read 3179 times)

0 Members and 1 Guest are viewing this topic.

curmudgeon

  • Newt
  • Posts: 194
how to strcat a double quote
« on: September 05, 2011, 10:11:51 AM »
Code: [Select]
(action_tile "rb1" "(setq suffix \"\")")
.....
(setq wall_width "8")(setq wall_height "9")
(setq txt (strcat wall_width " X " wall_height "'H CONCRETE FOUNDATION WALL" suffix))

returns
"8 X 9'H CONCRETE FOUNDATION WALL"

I want to insert an inch mark after the 8, like this.
"8" X 9'H CONCRETE FOUNDATION WALL"

cannot remember this morning how to get the special character after the 8.

Never express yourself more clearly than you are able to think.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: how to strcat a double quote
« Reply #1 on: September 05, 2011, 10:17:29 AM »
Code: [Select]
(strcat wall_width "\" X " wall_height "'H CONCRETE FOUNDATION WALL" suffix)

curmudgeon

  • Newt
  • Posts: 194
Re: how to strcat a double quote
« Reply #2 on: September 05, 2011, 10:44:58 AM »
that's exactly what I tried the first time, and I get a slash character with it
"8\" X 9'H CONCRETE FOUNDATION WALL"
Never express yourself more clearly than you are able to think.

curmudgeon

  • Newt
  • Posts: 194
Re: how to strcat a double quote
« Reply #3 on: September 05, 2011, 11:00:21 AM »
so sorry. was being silly.
when that slash gets passed through entmake it of course goes away.

 :oops:
Never express yourself more clearly than you are able to think.

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: how to strcat a double quote
« Reply #4 on: September 05, 2011, 11:13:50 AM »