Previous Topic: SetBroker Method

Next Topic: GetLastMessage Method


Login Method

Logs into the specified CA Harvest SCM Broker.

Syntax

object.Login(strBrokerName, strUserName, strPassword)

Owning Class

CaWHarvest

Arguments

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

strUserName - A string that represents the User Name.

strPassword - A string that represents the Password.

Return Value

A long, zero if success, Nonzero if failure. GetLastMessage will give the last message from the server for both success and failure.

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.Login(“CMBroker”, “CMUser”, “MyPassword")