# Reg_GetMultiString

> Gets the value of a registry variable of type multi string.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/registry-functions/reg-getmultistring/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Gets the value of a registry variable of type multi string

### Syntax

Reg_GetMultiString(sHandle, sKey, sVariable, bMustExist) as Boolean

### Parameters

#### sHandle (String)

HKEY-handle

#### sKey (String)

Subkey path

#### sVariable (String)

Name of variable to read

#### bMustExist (Boolean)

TRUE if variable must exist

### Return value

Result will be stored in gaValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = Reg_GetMultiString("HKLM", "Software\KeyName", "ValueName", False)
If bStatus And IsArray(gaValue) Then
  For index = LBound(gaValue) to UBound(gaValue)
    bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True)
  Next
End If
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Registry Functions](/capainstaller/vb-scripting-library/registry-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
