Links are not active on this page.
 dbc_AfterAddTable Event

Occurs after a table is added to an active database. There are two versions of the syntax.

PROCEDURE dbc_AfterAddTable(cTableName, cLongTableName) 
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.

Expand imageRemarks

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.

Expand imageExample

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

Expand imageSee Also