Previous Topic: GetUserList Method

Next Topic: GetStateList Method


SetLogName Method

The SetLogName method sets the file name for the output log and open the file. If log file name is not set, all output messages will be discarded.

Syntax

object.SetLogName()

Owning Class

CaWHarvest

Arguments

A string that represents the output log file name.

Return Value

A boolean, True if success, False if fail.

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
blnRet = sobjHarvest.SetLogName(“C:\temp\vblog.txt”)
 lngRet = sobjHarvest.Login(“CMBroker”, “CMUser”, “MyPassword")

More information: