guides:programming:programmers_reference_manual:close_event

CLOSE event

Occurs when a window closes.

bforward = CLOSE(ctrlentID, ctrlclassID, cancelflag)

CLOSE accepts arguments for the following parameters.

ParameterDescription
ctrlentIDHas 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.
ctrlclassIDThe type of control that recognizes the event. The window control type is the only valid entry.
cancelflagIf, false (0) then cancel the close process. If true (1), then continue with close.

True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level.

The most common reason that a form will not close is the use of Return 0 instead of Return 1 in the close event.

  • guides/programming/programmers_reference_manual/close_event.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1