Occurs before a SQL view (updatable cursor) is created. There are two versions of the syntax.
PROCEDURE dbc_BeforeCreateView LPARAMETERS cViewName)
- Specifies the name of the view being created.
You can use the dbc_BeforeCreateView event to track attempted access to the database before a view is created.
Return .F. from this procedure to prevent the view from being created.
* Reports to the screen Event name, where it is called from and ; * the parameters passed. PROCEDURE dbc_BeforeCreateView ; (cViewName, ; lRemote) ? '>> ' + PROGRAM() ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1) ? ' cViewName = ' + TRANSFORM(cViewName) + ' - ' ; + TYPE('cViewName ')+' /end/ ' *RETURN .f. ENDPROC