CLOSE event
Description
Occurs when a window closes.
Syntax
bforward = CLOSE(ctrlentID, ctrlclassID, cancelflag)
Parameters
CLOSE accepts arguments for the following parameters.
Parameter | Description |
---|---|
ctrlentID | Has the format WindowName.ControlName, where WindowName is the identifier of the window that contains the affected control, and ControlName is the identifier of the control. Notice that a period separates the two values. |
ctrlclassID | The type of control that recognizes the event. The window control type is the only valid entry. |
cancelflag | If, false (0) then cancel the close process. If true (1), then continue with close. |
Returns
True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level.
See Also
Remarks
The most common reason that a form will not close is the use of Return 0 instead of Return 1 in the close event.