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
| В | Copy Code |
|---|---|
* 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 | |
js editor
Web development