CtrlSelectText

InstallShield 2014 ยป InstallScript Language Reference

The CtrlSelectText function selects all the text in an edit field or the edit field of a combo box. If the control is a multi-line edit field, this function selects all the text on all lines. This function is for use only with custom dialogs.

Syntax

CtrlSelectText ( szDialogName, nControlID );

Parameters

CtrlSelectText Parameters

Parameter

Description

szDialogName

Specifies the name of a valid dialog that contains the edit field to be selected.

nControlID

Specifies the resource ID of the edit field or combo box control to be selected.

Return Values

CtrlSelectText Return Values

Return Value

Description

0

CtrlSelectText successfully selected all the text in the field.

< 0

CtrlSelectText was unable to select the text.

See Also