Previous Topic: GetFileList Method

Next Topic: IsValid Method


Execute Method

Executes the Checkin process on the Version list currently selected using the Version Chooser.

Syntax

object.Execute(blnFileList)

Owning Class

CaWCheckin

Arguments

blnFileList - If True checks in a file list, if False gets the list from the version chooser.

Return Value

A long - Zero if success, Nonzero if failure.

Notes

None

Example

Dim objCheckin
Dim objFileList
 ' Set check in parameters
Set objCheckin = objContext.GetCheckin()
objCheckin.SetFileList(objFileList)
 objCheckin.SetCheckinMode(0)
 objCheckin.SetPathOption(0)
 objCheckin.SetItemOption(0)
 objCheckin.SetDeleteAfterCI(False)
 objCheckin.SetViewPath("\CHSDKRep")
objCheckin.SetClientDir("C:\temp")
 ' Select files to be checked in
Set objStringList = CreateObject("Chsdk.CaWStringList")
objStringList.InitHObject()
objStringList.Add("File1.vbs")
objStringList.Add("File2.vbs")
 ' Check in
lngRet = ObjCheckin.Execute(True)

More information: