toMultiString

Use this method when sending data to the registry REG_MULTI_SZ data using ssCore.Registry.setValue.


Availability:

First available in version 3.5 build 314.

Not available in ActionScript 3.


Usage:

mszStr = StringUtils.toMultiString(values)

mszStr - String - A serialized string formatted for use with the ssCore.Registry.setValue command.


Parameters:

values - Array - Pass any number of elements in an array.


Notes:

See ssCore.Registry.getValue, ssCore.Registry.setValue, and StringUtils.fromMultiString.


Examples:

import northcode.utils.StringUtils;

ssCore.init();
ssDefaults.synchronousCommands = true;

var mszStr = StringUtils.toMultiString(["value1", "value2", "valueN"]);

ssCore.Registry.setValue({rootKey:"HKEY_CURRENT_USER", subKey:"Software\\Test", valueName:"MyValue", value:mszStr, type:"REG_MULTI_SZ"});