Previous Topic: VersionDescription Property

Next Topic: SetFromStateById Method


SetFromStateByName 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.SetFromStateByName(strProjectName, strStateName)

Owning Class

CaWCrossProjectMerge

Arguments

strProjectName - A string represents the name of the project to merge with.

strStateName - A string represents the name of a state in strProjectName that contains the desired packages.

Return Value

A boolean - True if set succeeded, False if failed.

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(strProjectName, strStateName)

More information: