Skip to content

Reg_UpdateMultiString

Adds one or more strings to the end of a multistring variable (REG_MULTI_SZ) in the registry. Separate sValue with | (pipe) to add more values.

The existing strings are kept. The function doesn’t check for duplicates. If the variable or the key doesn’t exist, it’s created.

Reg_UpdateMultiString(sHandle, sKey, sVariable, sValue) as Boolean

Registry hive, for example HKLM. For all accepted values, see Registry Functions.

Subkey path

Name of variable to contain the value

One or more strings to add, separated by | (pipe)

The new content is stored in gaValue as an array and in gsValue as strings separated by | (pipe).

If bStatus Then bStatus = Reg_UpdateMultiString("HKLM", "Software\KeyName", "ValueName", "Randers|Odense")

Scripting Guidelines

Registry Functions Constants Package Property Variables