Occurs before a view is renamed. There are two versions of the syntax.
PROCEDURE dbc_BeforeRenameView(cPreviousName, cNewName)
PROCEDURE dbc_BeforeRenameView LPARAMETERS cPreviousName, cNewName
- Specifies the current name of the view.
- Specifies the new name of the view.
You can use the dbc_BeforeRenameView event to track attempted access to the database before views are renamed.
Return .F. from this procedure to prevent the view from being renamed.