dbc_BeforeCreateView Event
Occurs before a SQL view (updatable cursor) is created. There are two versions of the syntax.
PROCEDURE dbc_BeforeCreateView(cViewName)
PROCEDURE dbc_BeforeCreateView
LPARAMETERS cViewName)
Parameters
- cViewName
Specifies the name of the view being created.
Remarks
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.
Example
* 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
See Also
Tasks
How to: Enable or Disable DBC Events