String with quotes in it

Discussion in 'AutoCAD' started by Greg McLandsborough, Mar 8, 2005.

  1. How do I construct a string with quotes in it, is it possible.

    for example "I want to create a "Big" string"

    thanks for any help

    regards

    greg
     
    Greg McLandsborough, Mar 8, 2005
    #1
  2. Greg McLandsborough

    Jeff Mishler Guest

    (setq str "I want to create a \"Big\" string")
    (princ str)

    HTH,
     
    Jeff Mishler, Mar 8, 2005
    #2
  3. (setq str (strcat "I want to create a " (chr 34) "Big" (chr 34) " string"))
     
    Alan Henderson @ A'cad Solutions, Mar 9, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.