Aracılığıyla paylaş


dbc_AfterDeleteConnection Event

Occurs after a connection is deleted. There are two versions of the syntax.

PROCEDURE dbc_AfterDeleteConnection(cConnectionName) 

PROCEDURE dbc_AfterConnection
LPARAMETERS cConnectionName

Parameters

  • cConnectionName
    Specifies the name of the connection being deleted.

Remarks

You can use the dbc_AfterDeleteConnection event to track access to the database after a connection is deleted from the database.

Example

* Reports to the screen Event name, where it is called from and ;
* the parameter passed.
PROCEDURE dbc_AfterDeleteConnection ;
          cItemName)
 ? '>>   ' + PROGRAM()
 ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
 ? '     cConnectionName    = ' + TRANSFORM(cConnectionName)        + ' - ' ;
                      + TYPE('cConnectionName ')+' /end/ '
ENDPROC

See Also

Tasks

How to: Enable or Disable DBC Events

Reference

dbc_BeforeDeleteConnection Event

Other Resources

Events (Visual FoxPro)