Evento ADO InfoMessage
❮ Referência Completa do Objeto de Conexão
Um evento é uma sub-rotina que pode ser chamada automaticamente após a ocorrência de uma operação específica.
O evento InfoMessage pode ser acionado se ocorrer um aviso em uma operação de conexão.
Sintaxe
InfoMessage objerror,status,objconn
Parameter | Description |
---|---|
objerror | An Error object that contains the errors that are returned |
status | An EventStatusEnum value. If a warning occurs, status is set to adStatusOK and the objerror contains the warning |
objconn | A Connection object. The connection for which the warning occurred |
Valores EventStatusEnum
Constant | Value | Description |
---|---|---|
adStatusOK | 1 | The operation that fired the event was successful |
adStatusErrorsOccurred | 2 | The operation that fired the event failed |
adStatusCantDeny | 3 | Cannot cancel the pending operation |
adStatusCancel | 4 | Cancels the operation that fired the event |
adStatusUnwantedEvent | 5 | Prevents subsequent notifications before the event method has finished executing |
❮ Referência Completa do Objeto de Conexão