Share via


dbc_AfterAddTable Event

Occurs after a table is added to an active database.

PROCEDURE dbc_AfterAddTable(cTableName, cLongTableName) 

-Or-

PROCEDURE dbc_AfterAddTable
LPARAMETERS cTableName, cLongTableName

Parameters

  • cTableName
    Specifies the name of the table being added to the database.
  • cLongTableName
    Specifies the long name of the table being added to the database.

Remarks

You can add method code to the dbc_AfterAddTable event that performs functions like updating your data dictionary or sending an email to the database administrator.

This event does not occur when you create a table in the database.

Example

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

See Also

Enable or Disable DBC Events | dbc_BeforeCreateTable Event |dbc_BeforeAddTable Event