Previous Topic: GetLastMessage Method

Next Topic: Logout Method


ChangePassword Method

Changes the password of the current user.

Syntax

object.ChangePassword(szNewPassword)

Owning Class

CaWHarvest

Arguments

szNewPassword - A string that represents the user's new 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.

Notes
Exceptions

Throws CException on error.

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")
sobjHarvest.ChangePassword(“MyNewPassword”)

More information: