Close

_CloseAllDocuments, _CloseAllDocumentsButCurrent, _CloseCurrentDocument, CloseAllDocuments, CloseAllDocumentsButCurrent, CloseCurrentDocument

CloseAllDocuments

Interactive command to this function: Window > Close All

Description 

 CloseAllDocuments(
   int  Save
);

This function closes all opened documents.

Parameters

int Save

Specifies whether to save document if it has been changed.

0, QUERYSAVE_ASK

Asks whether to save changes or not.

1, QUERYSAVE_YES

Changes are saved for all documents.

2, QUERYSAVE_NO

Changes are not saved for all documents.

See Also 
_CloseAllDocuments

CloseAllDocumentsButCurrent

Interactive command to this function: Window > Close All but Current

Description 

 CloseAllDocumentsButCurrent(
   int  Save
);

This function closes all opened documents, but keeps the current one opened.

Parameters

int Save

Specifies whether to save document if it has been changed.

0, QUERYSAVE_ASK

Asks whether to save changes or not.

1, QUERYSAVE_YES

Changes are saved for all documents.

2, QUERYSAVE_NO

Changes are not saved for all documents.

See Also 
CloseAllDocuments

CloseCurrentDocument

This function runs the Close command.

Interactive command to this function: File > Close

Description 

 CloseCurrentDocument(
   int  Save
);

This function closes the current document.

Parameters

int Save

Specifies whether to save document if it has been changed.

0, QUERYSAVE_ASK

Asks whether to save changes or not.

QUERYSAVE_CANCEL (0)

Cancels operation.

1, QUERYSAVE_YES

Changes are saved.

2, QUERYSAVE_NO

Changes are not saved.

See Also 
_CloseCurrentDocument

_CloseAllDocuments

This function runs the Window > Close All command.

Description 

 _CloseAllDocuments();

This function closes all opened documents. If any document has been changed and not saved, the function shows a dialog box, where you must confirm an action.

See Also 
CloseAllDocuments, _CloseCurrentDocument

_CloseAllDocumentsButCurrent

This function runs the Window > Close All but Current command.

Description 

 _CloseAllDocumentsButCurrent();

This function closes all documents opened within the application except the current one (the one you are looking at). If there are some unsaved changes in the documents being closed, you will be asked whether to save them.

See Also 
CloseAllDocumentsButCurrent

_CloseCurrentDocument

This function runs the File > Close command.

Description 

 _CloseCurrentDocument();

This function closes current document. If the document has been changed and not saved, the function shows a dialog box, where you must confirm action.

See Also 
CloseCurrentDocument, _CloseAllDocuments