共用方式為


dbc_BeforeRenameView Event

Occurs before a view is renamed.

PROCEDURE dbc_BeforeRenameView(cPreviousName, cNewName)

-or-

PROCEDURE dbc_BeforeRenameView
LPARAMETERS cPreviousName, cNewName

Parameters

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

Remarks

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.

See Also

Enable or Disable DBC Events | dbc_AfterRenameView Event