Combines the characters associated with a list of integers into a string

Discussion in 'AutoCAD' started by Adesu, May 27, 2004.

  1. Adesu

    Adesu Guest

    (vl-list->string '(49 50)) -----> "12"
    Can someone's inform to me how to find "12",thanks a lot
    Best regards
    Ade Suharna
     
    Adesu, May 27, 2004
    #1
  2. Adesu

    Jeff Mishler Guest

    Is this what you are looking for?

    (setq str "This string has 12 in it")
    (setq posit (vl-string-search "12" str))
    (setq newstr (substr str (1+ posit) 2))

    Jeff
     
    Jeff Mishler, May 27, 2004
    #2
  3. Adesu

    ECCAD Guest

    (Setq N (strcat (chr 49) (chr 50)))

    Bob
     
    ECCAD, May 27, 2004
    #3
  4. Adesu

    ECCAD Guest

    Command: (setq n '(49 50 51))
    (49 50 51)

    Command: (setq g (nth 0 n))
    49

    Command: (setq h (chr (eval g)))
    "1"

    Bob
     
    ECCAD, May 27, 2004
    #4
  5. Adesu

    Adesu Guest

    Hi ECCAD,.thanks a lot for you , yes I now clear it
     
    Adesu, May 28, 2004
    #5
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.