CtrlGetText

InstallShield 2014 ยป InstallScript Language Reference

The CtrlGetText function retrieves the text from an edit field, static text field, or button control of a custom dialog. To retrieve the text from multi-line edit field controls, call CtrlGetMLEText.

Syntax

CtrlGetText ( szDialogName, nControlID, svText );

Parameters

CtrlGetText Parameters

Parameter

Description

szDialogName

Specifies the name of a dialog that contains the field or control whose text is to be retrieved.

nControlID

Specifies the resource ID of the edit field, static text field, or button control.

svText

Returns the text from the control or field identified by nControlID.

Return Values

CtrlGetText Return Values

Return Value

Description

0

CtrlGetText successfully retrieved the contents of the control.

< 0

CtrlGetText was unable to retrieve the contents.

See Also