converting a list to a string

Discussion in 'AutoCAD' started by Marcel Janmaat, Feb 24, 2005.

  1. Question...

    If (cadar lst) will result in ("cmdecho")

    How can I make this "("cmdecho")" or maby "\(\"cmdecho\"\)"

    M
     
    Marcel Janmaat, Feb 24, 2005
    #1
  2. Marcel - try these:

    (vl-load-com)

    (vl-prin1-to-string '("cmdecho"))
    "(\"cmdecho\")"

    (vl-princ-to-string '("cmdecho"))
    "(cmdecho)"

    Peter
     
    petersciganek, Feb 24, 2005
    #2
  3. Thanx!
     
    Marcel Janmaat, Feb 24, 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.