Difference between revisions of "DBC CLOSEDATA"
m (Text replace - "Recital" to "Lianja") |
Yvonne.milne (Talk | contribs) |
||
Line 20: | Line 20: | ||
==See Also== | ==See Also== | ||
− | [[ADATABASES()]], [[ALTER TABLE]], [[ADD TABLE]], [[ALTER INDEX]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DATABASE()]], [[SQL Database Events|DATABASE EVENTS | + | [[ADATABASES()]], [[ALTER TABLE]], [[ADD TABLE]], [[ALTER INDEX]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COMPILE DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DATABASE()]], [[SQL Database Events|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]], [[RESTORE DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SQL USE|USE]] |
==Description== | ==Description== | ||
Line 36: | Line 36: | ||
|} | |} | ||
− | + | Programs associated with database events should reside in the database's directory. | |
− | + | ||
− | Programs associated with database events should reside in the | + | |
==Example== | ==Example== |
Revision as of 12:35, 19 December 2012
Contents
Purpose
Database event triggered by the closure of a database
Syntax
PROCEDURE dbc_CloseData(<expC>,<expL1>)
// Commands
ENDPROC | RETURN [<expL2>]
or
PROCEDURE dbc_CloseData
LPARAMETERS [<expC>,<expL1>]
// Commands
ENDPROC | RETURN [<expL2>]
See Also
ADATABASES(), ALTER TABLE, ADD TABLE, ALTER INDEX, BACKUP DATABASE, 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, RESTORE DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE
Description
The DBC_CLOSEDATA database event is triggered by the closure of a database. The associated code is run before the database is actually closed. Databases are closed using the CLOSE DATABASES command.
Event | Description |
---|---|
<expC> | The database name |
<expL1> | Specifies whether the ALL keyword was included on the CLOSE DATABASES, .T. or not, .F. |
<expL2> | If the dbc_closedata procedure returns .F., the database is not closed, if .T., the close operation continues |
Programs associated with database events should reside in the database's directory.
Example
procedure dbc_closedata lparameters cName, lAll close procedures return