ADO InfoMessage Event

Definition and Usage

The event is an automatically called subroutine after a specific operation is performed.

The InfoMessage event is triggered when a warning occurs during the connection operation.

Syntax

InfoMessage objerror,status,objconn
Parameter Description
objerror Error Object. This parameter contains any errors returned.
status One EventStatusEnum Value. If a warning occurs, status will be set to adStatusOK, and the warning will be included in objerror.
objconn Connection Object. The connection that triggered the warning.

EventStatusEnum Value

Constant Value Description
adStatusOK 1 The operation that triggered the event was successful.
adStatusErrorsOccurred 2 The operation that triggered the event failed.
adStatusCantDeny 3 Cannot cancel suspended operations.
adStatusCancel 4 Cancel the operation that caused the event.
adStatusUnwantedEvent 5 Prevent subsequent notifications before the event method is executed.