ObjectDCL Banner

Form_CloseAll Method

Description

This method will close all dialogs matching the requested type.

Parameters

DialogBitStyle
Integer representing a mask with the following values:
  • 0 - Closes all dialog boxes
  • 1 - Closes all Modal dialog boxes
  • 2 - Closes all Modeless dialog boxes
  • 4 - Closes all Dockable dialog boxes
  • 8 - Closes all FileDialog dialog boxes
For example, a value of 3 will close Modal and Modeless dialog boxes.

Return Values

This command has no return value.

AutoLISP Syntax

CopyCode imageCopy Code
(Odcl_Form_CloseAll
		DialogBitStyle [as Integer])

Remarks

Warning this method will close all dialogs, even those created by another third party application using ObjectDCL technology. Please use with caution.

Applies For

Dockable, FileDialog, Modal, Modeless.

Example

CopyCode imageCopy Code
; Center the dialog
(Odcl_Form_CloseAll 0)

See Also

Form_Show, Form_Close