Compartir a través de


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.

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

Tasks

How to: Enable or Disable DBC Events

Reference

dbc_BeforeCreateTable Event

dbc_BeforeAddTable Event

Other Resources

Events (Visual FoxPro)

Language Reference (Visual FoxPro)