AdoConnectionEvents:ConnectComplete()

<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoConnectionEvents Class >

AdoConnectionEvents:ConnectComplete()

Previous pageReturn to chapter overviewNext page

Purpose

The ConnectComplete event is called after a connection starts

 

Prototype

METHOD ConnectComplete ( oError , lStatus , oConn  )  CLASS AdoConnectionEvents

 

Argument(s)

oError        An Error object. It describes the error that occurred if the value of lStatus is adStatusErrorsOccurred; otherwise it is not set

lStatus        An AdoEventStatusEnum status value. When ConnectComplete is called, this parameter is set to adStatusCancel if a WillConnect event has requested cancellation of the pending connection

oConn        The Connection object for which this event notification applies.

 

 

Description

Before the event returns, set this parameter to adStatusUnwantedEvent to prevent subsequent notifications. However, closing and reopening the Connection causes the event to occur again.

 

See Also

AdoConnectionEvents, AdoEventStatusEnum, AdoConnection:Open(), AdoError