Quotation Marks and LISP

Discussion in 'AutoCAD' started by mnash, Jul 7, 2004.

  1. mnash

    mnash Guest

    I want to place Quotation MArks in a text feild through lisp. But LISP treats quotation marks as an action to do something. Can I get around this somehow. I have the following created thus far and it works.

    (defun do_text ()
    (setq txt1 (strcat "%%uSECTION '" int1 "-" int1 "' " ))
    )

    "INT1" have been defined earlier in my program.
    For now I have an apostrophy, but it's not technically correct.

    Much appreciated guys and gals.
    M
     
    mnash, Jul 7, 2004
    #1
  2. mnash

    T.Willey Guest

    Use \" to place quote marks.

    Tim
     
    T.Willey, Jul 7, 2004
    #2
  3. mnash

    Jürg Menzi Guest

    mnash

    You can use quotation marks in a string like this:
    (princ "Do you like \"quotation marks\"?")

    Cheers
     
    Jürg Menzi, Jul 7, 2004
    #3
  4. (chr 34)
     
    Alan Henderson @ A'cad Solutions, Jul 8, 2004
    #4
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.