DBWCheckinFromCheckout

<< Click to Display Table of Contents >>

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

DBWCheckinFromCheckout

Description

Returns the way the current document has been checkedin.

Syntax

Function DBWCheckinFromCheckout(uid)

Parameter

uid

the unique id of the document to check.

Return Values

TRUE

If the previous state of the document was checkout

FALSE

If the previous state of the document was released

Example

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