|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > Revision > DBWCheckinFromCheckout |
Returns the way the current document has been checkedin.
Function DBWCheckinFromCheckout(uid)
uid |
the unique id of the document to check. |
TRUE |
If the previous state of the document was checkout |
|---|---|
FALSE |
If the previous state of the document was released |
Sub main()
DBWInit(TRUE)
'retrieve the currently selected document uid
call DBWShell( "CurrentDocument" )
if (okDBW = False) then exit sub
docUId = DBWResult( "@DOCUMENT_UNIQUE_ID" )
if DBWCheckinFromCheckout(docUid) then
msgbox "previous state for document " & docUId & " was CHECKOUT"
else
msgbox "previous state for document " & docUId & " was RELEASED"
end if
End Sub