Chapter 9 Accessing objects using VBScript


Managing document versions

You can manage the document versions using VBScript as follows:

You can freeze and unfreeze a document version using the following methods: Freeze(ByVal Comment As String = "") As Boolean and Unfreeze() As Boolean.

Example

MyDocument.Freeze "Update required"

Example

MyDocument.Unfreeze

You can lock and unlock a document version using the following methods: Lock(ByVal Comment As String = "") As Boolean and Unlock() As Boolean.

Example

MyDocument.Lock "Protection required"

Example

MyDocument.Unlock

You can delete a document version using the following method: DeleteVersion() As Boolean.

Example

MyDocument.Delete

 


Copyright (C) 2005. Sybase Inc. All rights reserved.