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


dbc_AfterRenameTable Event

Occurs before a table is renamed.

PROCEDURE dbc_AfterRenameTable(cPreviousName, cNewName)

-or-

PROCEDURE dbc_AfterRenameTable
LPARAMETERS cPreviouName, cNewName

Parameters

  • cPreviousName
    Specifies the current name of the table.
  • cNewName
    Specifies the new name of the table.

Remarks

You can use the dbc_AfterRenameTable event to track changes to the database as tables are renamed.

Example

PROCEDURE dbc_AfterRenameTable;
   (cPreviousName, ;
    cNewName)
 ? '>>   ' + PROGRAM()
 ?? 'in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1
 ? '     Current DBC:    ' + SUBSTR(DBC(),RAT('\',DBC())+1
 ? '     cPreviousName = ' + TRANSFORM(cPreviousName)    + ' – ' + TYPE('cPreviousName ')+' /end/ '
ENDPROC

See Also

Enable or Disable DBC Events | dbc_BeforeRenameTable Event