次の方法で共有


dbc_AfterRenameConnection Event

Occurs before a connection is renamed. There are two versions of the syntax.

PROCEDURE dbc_AfterRenameConnection(cConnectionName, cNewName)

PROCEDURE dbc_AfterRenameConnection
LPARAMETERS cPreviousName, cNewName

Parameters

  • cPreviousName
    Specifies the previous name of the connection.

  • cNewName
    Specifies the new name of the connection.

Remarks

You can use the dbc_AfterRenameConnection event to track changes to the database as connections are renamed.

Return .F. from this procedure to prevent the connection from being renamed.

See Also

Tasks

How to: Enable or Disable DBC Events

Reference

dbc_BeforeRenameConnection Event

Other Resources

Events (Visual FoxPro)