Changes the password of the current user.
object.ChangePassword(szNewPassword)
CaWHarvest
szNewPassword - A string that represents the user's new password.
A long, zero if success, Nonzero if failure. GetLastMessage will give the last message from the server for both success and failure.
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:
| Copyright © 2013 CA. All rights reserved. |
|