Previous Topic: SetFromStateByName Method

Next Topic: GetFromProjectId Method


SetFromStateById Method

Sets the Project and State that contain the source packages to merge with. These must differ from the Project and State set in the Context.

Syntax

object.SetFromStateById(lngProjectId, lngrStateId)

Owning Class

CaWCrossProjectMerge

Arguments

lngProjectId - A long represents the object ID of the project to merge with.

lngrStateId - A long represents the object ID of a state in the project with lngProjectId that contains the desired packages.

Return Value

None

Notes

A list of available projects may be retrieved from a CaWHarvest object using GetProjectList(). From that list, select a project by name and extract its ObjId. Then, using the CaWHarvest object's GetStateList( ObjId ) function, retrieve a list of available states in that project. The name or objid can then be used in SetFromState.

Example

Dim objXProjectMerge
Set objXProjectMerge = objContext.GetCrossProjectMerge()
blnRet = ObjXProjectMerge.SetFromState(lngProjectId, lngStateId)

More information: