Export (0) Print
Expand All
Expand Minimize

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.

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

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

Community Additions

ADD
Show:
© 2014 Microsoft