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

Darren J. Young

Usenet Archive
Joined
Feb 8, 2000
Messages
215
Reaction score
0
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.
 
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")
 
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")

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.
 

Latest threads

Back
Top