AdoConnectionEvents:Disconnect()

<< Click to Display Table of Contents >>

Navigation:  Ado Events > AdoConnectionEvents Class >

AdoConnectionEvents:Disconnect()

Previous pageReturn to chapter overviewNext page

Note

Please note that event handling is not supported in the current version of Xs2Ado

Purpose

The ConnectComplete event is called after a connection ends

 

Prototype

METHOD Disconnect  ( lStatus , oConn  )  CLASS AdoConnectionEvents

 

Argument(s)

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:Close()