CtrlGetCurSel

InstallShield 2014 ยป InstallScript Language Reference

The CtrlGetCurSel function retrieves the currently selected item from a single-selection list box or combo box control in a custom dialog. Call CtrlGetMultCurSel to retrieve items from multi-selection list boxes.

Syntax

CtrlGetCurSel ( szDialogName, nControlID, svText );

Parameters

CtrlGetCurSel Parameters

Parameter

Description

szDialogName

Specifies the name of a custom dialog that contains the item to be retrieved.

nControlID

Specifies the resource ID of the single-selection list box or combo box control.

svText

Returns the item currently selected with the control specified by nControlID.

Return Values

CtrlGetCurSel Return Valuesl

Return Value

Description

0

CtrlGetCurSel successfully retrieved the currently selected item from the dialog.

< 0

CtrlGetCurSel was unable to retrieve the selected item.

See Also