LastError Property

The last error encountered by the object.

Syntax

ActiveDirectory.LastError

Access

Read only.

Return Type

String.

Example

To retrieve an error from the last operation, enter:


Dim objActiveDirectory
Dim strError

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

If Not objActiveDirectory.BindPDCMaster Then
strError = objActiveDirectory.LastError
End If

Set objActiveDirectory = Nothing