Difference between revisions of "DBC AFTERDELETE"

From Lianjapedia
Jump to: navigation, search
(Created page with "''Under Construction'' ==Purpose== Database events are triggered by certain database operations ==See Also== ADATABASES(), ALTER TABLE, ADD TABLE, ALTER INDEX...")
 
Line 18: Line 18:
 
|valign="top"|<cTable>||The table name
 
|valign="top"|<cTable>||The table name
 
|-
 
|-
|valign="top"|<cJSON>||Specifies whether the NOPUDATE keyword was included on the OPEN DATABASE command, .T. or not, .F.
+
|valign="top"|<cJSON>||
 
|-
 
|-
 
|}
 
|}

Revision as of 11:43, 17 October 2016

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
// ...