Condividi tramite


dbc_AfterCreateTable Event

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

PROCEDURE dbc_AfterCreateTable(cTableName, cLongTableName) 

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

Tasks

How to: Enable or Disable DBC Events

Reference

dbc_BeforeCreateTable Event

Other Resources

Events (Visual FoxPro)

Language Reference (Visual FoxPro)