CloseAll

 

The CloseAll method closes all documents in the collection. Returns a Boolean.

 

Syntax

object.CloseAll( SaveChanges )

 

Parameter

Type

Description

SaveChanges

MVSaveTypes

optional, default=mvSaveChangesYes

 

Remarks

Returns true if all documents were closed, false if the user canceled the operation.

 

Example

This example demonstrates how to prompt the user to save open documents prior to closing all of them.

 

Docs.CloseAll(SaveChanges:= mvSaveChangesAsk)

 

Used by: Documents collection