dbc_AfterRenameTable Event
Occurs before a table is renamed. There are two versions of the syntax.
PROCEDURE dbc_AfterRenameTable(cPreviousName, cNewName)
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
Tasks
How to: Enable or Disable DBC Events