Share via


dbc_BeforeDropRelation Event

Occurs before a relation is dropped from a database.

PROCEDURE dbc_BeforeDropRelation(cRelationID, cTableName, cRelatedChild,
   cRelatedTable, cRelatedTag)

-or-

PROCEDURE dbc_BeforeDropRelation
LPARAMETERS [cRelationID, cTableName, cRelationChild, cRelatedTable,
   cRelatedTag]

Parameters

  • cRelationID
    Specifies the Relation ID stored in the database.
  • cTableName
    Specifies the name of the parent table.
  • cRelatedChild
    Specifies the name of the linked column in the child table.
  • cRelatedTable
    Specifies the child table containing the linked column.
  • cRelatedTag
    Specifies the index tag of the parent table.

Remarks

You can use the dbc_BeforeDropRelation event to verify appropriate values for cRelationID and the other parameters in a procedure that tracks, or manages access to the database before a relation is dropped from the database.

Return .F. from this procedure to prevent the relation from being dropped.

See Also

Enable or Disable DBC Events | dbc_AfterDropRelation Event