When I use this function:
$key->SetValue( ["Val1","Value2","LastVal"], "REG_MULTI_SZ" );
with a named array, like so:
$retval = $key->SetValue("TurfTable", @junklist, "REG_MULTI_SZ"
); Instead of getting the expected "null terminated strings" in the
value, I get some other weirdness. If you edit the value directly with
Regedt32 then you must enter multiple values with carriage returns,
which the program (Regedt32) magically transforms into "nulls". I've
seen in the documentation a reference to a null as '\0' and also, in the
documentation for SetValue as \000.
This is extremely frustrating as I can read the data from the value into
an array with no problems, but I cannot update or create a value which
is valid. String data gets written there with an odd char. separating
the strings. (looks like a little box, used when an invalid ASCII char
is present). I'm also a bit unclear on the "required two nulls" at the
end. Must I create an array value containing these, or must I
"stringify" the array and concatenate two nulls to the end??
Which of the formats for "null" above are correct?
What the heck is the secret??? There surely is a way to do this EASILY.
Any advice would be greatly appreciated.
I JUST tried this with the syntax shown in the example
("valuename",["foo.com","bar.com", "bax.com"],"REG_MULTI_SZ")
What is the difference between my named array and an anonymous one?!
Lee
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs