|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Document > DBWGetDocState |
Retrieve the current document state and its revision.
Function DBWGetDocState(DocUId, ByRef Revision)
DocUId |
document unique id |
The function assumes the current state of the document; it can be:
checkin |
checkout |
frozen |
new |
released |
Revision |
current revision of the document |
docUniqueId=26
state = DBWGetDocState(docUniqueId, revision)
msgbox "document " & Cstr(docUniqueId) & " has actual state " & _
" and revision number " & Cstr(revision)