CONTROLEXISTS

Top  Previous  Next

Syntax

INT = CONTROLEXISTS(win as WINDOW,id as UINT)

Description

Test for the existence of a control.

Parameters

win - Window or dialog containing the control

id - Identifier of the control

Return value

1 if the control exists or 0 if it has not been created yet

Remarks

See Also: CONTROL

Example usage

IF CONTROLEXISTS(mydlg, 4) THEN SETCONTROLTEXT(mydlg,4,"hello")