Logs into the specified CA Harvest SCM Broker.
object.Login(strBrokerName, strUserName, strPassword)
CaWHarvest
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.
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")
| Copyright © 2013 CA. All rights reserved. |
|