Previous Topic: CaWHarvest

Next Topic: Login Method


SetBroker Method

Connects to the CA Harvest SCM Broker.

Syntax

object.SetBroker(strBrokerName)

Owning Class

CaWHarvest

Arguments

strBrokerName—A string that represents the name of the CA Harvest SCM Broker.

Return Value

A long, zero if success, nonzero if failure.

Note: The SetBroker method must be called once after the CaWHarvest object is created. It will establish a connection to the RTserver where the broker connects to.

Example

Dim sobjHarvest
Set sobjHarvest = CreateObject("Chsdk.CaWHarvest")
If sobjHarvest Is Nothing Then
msgbox "Can't create Harvest.", vbOKonly + vbExclamation, "Error"
Exit Sub
End If
LngRet = sobjHarvest.SetBroker(“CMBroker”)