dbc_BeforeCreateTable Event

JavaScript Editor js editor     Web development 



Main Page

Occurs before a table is created in the active database. There are two versions of the syntax.

PROCEDURE dbc_BeforeCreateTable(cTableName, cLongTableNameT) 
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

В Copy Code
PROCEDURE dbc_BeforeCreateTable ;
         (cTableName, ;
          cLongTableName)
? '     cTableName     = ' + TRANSFORM(cTableName)     + ' - ' ;
                       + TYPE('cTableName ')
? '     cLongTableName = ' + TRANSFORM(cLongTableName) + ' - ' ;
                       + TYPE('cLongTableName ')+' /end/ '
ENDPROC

See Also



JavaScript Editor js editor     Web development