dbc_BeforeModifyProc Event

Occurs before the stored procedures in the open database are modified.

PROCEDURE dbc_BeforeModifyProc( ) 

Remarks

You can use the dbc_BeforeModiProc event to track attempted access to the database before the stored procedures are modified.

Return .F. from this procedure to prevent the stored procedures from being modified.

Example

* Reports to the screen Event name, and where it is called from. 
PROCEDURE dbc_BeforeModifyProc
 ? '>>   ' + PROGRAM()
 ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
? DBC()
RETURN .F. && prevents modification of stored procedures.
ENDPROC

See Also

Enable or Disable DBC Events | dbc_AfterModifyProc Event