(vl-registry-write) -> REG_MULTI_SZ value types

Discussion in 'AutoCAD' started by Darren J. Young, Jan 16, 2004.

  1. Is there a way to write to a Multi-String data type in the registry
    (REG_MULTI_SZ)?

    (VL-REGISTRY-READ) reads from these values and places them in a nice
    list but I don't seem to be able to write to them using Lisp.

    I know I can do it in VB and/or ARX but I'm looking for a quick lisp
    method (if one exists) prior to gonig down those paths.

    --
    Darren J. Young
    CAD/CAM Systems Developer

    Cold Spring Granite Company
    202 South Third Avenue
    Cold Spring, Minnesota 56320

    Email:
    Phone: (320) 685-5045
    Fax: (320) 685-5052
     
    Darren J. Young, Jan 16, 2004
    #1
  2. Darren J. Young

    kozmos Guest

    You should join the items of the list into a string with "\r\n".

    That mean if you want to pass ("aaa" "bbb" "ccc" ) to registry, you should use this in VLISP:
    (vl-registry-write reg-key val-name "aaa\r\nbbb\r\nccc")
     
    kozmos, Jan 17, 2004
    #2
  3. You should join the items of the list into a string with "\r\n".
    Doesn't work in XP. What OS are you running? What I try this on XP, I
    get a REG_SZ value with the string having embedded control characters.
    Even if I first create an empty REG_MULTI_SZ value then do what you
    suggest, the value becomes a REG_SZ value and not a REG_MULTI_SZ value.

    But thanks for the suggestion.

    --
    Darren J. Young
    CAD/CAM Systems Developer

    Cold Spring Granite Company
    202 South Third Avenue
    Cold Spring, Minnesota 56320

    Email:
    Phone: (320) 685-5045
    Fax: (320) 685-5052
     
    Darren J. Young, Jan 20, 2004
    #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.