Megosztás a következőn keresztül:


dbc_AfterCreateTable Event

Occurs after a table is created in the active database.

PROCEDURE dbc_AfterCreateTable(cTableName, cLongTableName) 

-Or-

PROCEDURE dbc_AfterCreateTable
LPARAMETERS cTableName, cLongTableName

Parameters

  • cTableName
    Specifies the name of the table that was created.
  • cLongTableName
    Specifies the long name for the table that was created.

Remarks

This event does not occur when you create a free table.

You can use the dbc_AfterCreateTable event to verify appropriate values for cTableName or cLongTableName, use those parameters in a procedure to track, or manage access to the database after a table is created in the database.

Example

PROCEDURE dbc_AfterCreateTable ;
         (cTableName, ;
          cLongTableName)
? '     cTableName      = ' + TRANSFORM(cTableName)     + ' - ' ;
                        + TYPE('cTableName ')
? '     cLongTableName  = ' + TRANSFORM(cLongTableName) + ' - ' ;
                        + TYPE('cLongTableName ')+' /end/ '
ENDPROC

See Also

Enable or Disable DBC Events | dbc_BeforeCreateTable Event