LOTUSSCRIPT/COM/OLE CLASSES


SaveNewVersion method
Example

Saves a copy of a document as a new version.

Defined in

NotesUIDocument

Syntax

Call notesUIDocument.SaveNewVersion

Usage

This method is valid only when the document is in Edit mode.

To use this method, the Versions options on the document's form must be set as follows. See Version tracking for information about setting form properties.

The form must have one of the following versioning options. The versioning option determines what kind of document you create when you call the SaveNewVersion method.


The form's "Create versions" option must be set to "Manual - File, New Version." If the "Create versions" option is set to "Automatic - File, Save," a new version is created automatically when you call the Save method, and there is no need to use the SaveNewVersion method.

Errors

If the form's Versioning option is set to None, this method raises the error "Document command is unavailable."

If the form's "Create versions" option is set to "Automatic - File, Save," this method raises the error "Document command is unavailable."

Language cross-reference

FileSaveNewVersion @command in formula language

Example
See Also