DBC AFTERDELETE

From Lianjapedia
Revision as of 11:43, 17 October 2016 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Under Construction

Purpose

Database events are triggered by certain database operations

See Also

ADATABASES(), ALTER TABLE, ADD TABLE, ALTER INDEX, CLOSE DATABASES, CLOSE TABLES, COMPILE DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DATABASE(), Database Events, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST TABLES, OPEN DATABASE, PACK DATABASE, REBUILD DATABASE, REINDEX DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE

Description

The DBC_AFTERDELETE database event is triggered following a delete operation when a database is open and runs dbc_afterdelete.prg (.dbo compiled/runtime) if it exists.

The following parameters are passed to the dbc_afterdelete program:

Parameter Description
<cDatabase> The database name
<cTable> The table name
<cJSON>

Programs associated with database events should reside in the database's directory. These can be created and modified from the Events tab in the Data Workspace when a database is open.

Example

// dbc_afterdelete.prg
lparameters cDatabase, cTable, cJSON
// ...