DBWGetDocState

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > Document >

DBWGetDocState

Description

Retrieve the current document state and its revision.

Syntax

Function DBWGetDocState(DocUId, ByRef Revision)

Parameters

DocUId

document unique id

Return Values

The function assumes the current state of the document; it can be:

checkin

checkout

frozen

new

released

Revision

current revision of the document

Example

docUniqueId=26
state = DBWGetDocState(docUniqueId, revision)
msgbox "document " & Cstr(docUniqueId) & " has actual state " & _
 " and revision number " & Cstr(revision)