CtrlSetList

InstallShield 2014 ยป InstallScript Language Reference

The CtrlSetList function places the contents of a string list into the specified single- or multi-selection list box or combo box control. Any pre-existing contents are replaced with the items contained in listID. InstallShield places each element of the string list into each element of the list box or combo box control.

Syntax

CtrlSetList (szDialogName, nControlID, listID);

Parameters

CtrlSetList Parameters

Parameter

Description

szDialogName

Specifies the name of a dialog that contains the list box or combo box.

nControlID

Specifies the resource ID of the list box or combo box.

listID

Specifies the name of a string list that contains the elements to be copied into the list box or combo box control.

Return Values

CtrlSetList Return Values

Return Value

Description

0

CtrlSetList successfully placed the contents of the string list into the control.

< 0

CtrlSetList was unable to place the contents of the string list into the control.

See Also