dbc_BeforeCreateTable Event
Occurs before a table is created in the active database.
PROCEDURE dbc_BeforeCreateTable(cTableName, cLongTableNameT)
-Or-
PROCEDURE dbc_BeforeCreateTable
LPARAMETERS cTableName, cLongTableName
Parameters
- cTableName
Specifies the name of the table being created. - cLongTableName
Specifies the long name to be given to the table.
Remarks
This event does not occur when you create a free table.
You can use the dbc_BeforeCreateTable event to verify appropriate values for cTableName or cLongTableName. Use those parameters in a procedure to track, or manage access before a table is created in the database.
Return .F. from this procedure to prevent the table from being created.
Example
PROCEDURE dbc_BeforeCreateTable ;
(cTableName, ;
cLongTableName)
? ' cTableName = ' + TRANSFORM(cTableName) + ' - ' ;
+ TYPE('cTableName ')
? ' cLongTableName = ' + TRANSFORM(cLongTableName) + ' - ' ;
+ TYPE('cLongTableName ')+' /end/ '
ENDPROC