JavaScript Editor js editor     Web development 

Main Page

Occurs before a View is removed from the current database. There are two versions of the syntax.

PROCEDURE dbc_BeforeDropView(cViewName) 
PROCEDURE dbc_BeforeDropView



Specifies the name of the view to be deleted from the current database.


DROP VIEW is almost identical to DELETE VIEW; DROP VIEW is the ANSI SQL standard syntax for deleting a SQL view. Both commands remove a view definition from the active database, but the syntax is slightly different.

You can use the dbc_BeforeDropView event to track attempted access to the database before a view is removed from the database.

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


В Copy Code
* Reports to the screen Event name, where it is called from and ;
* the parameter passed.
PROCEDURE dbc_BeforeDropView ;
 ? '>>   ' + PROGRAM()
 ?? ' in ' + SUBSTR(SYS(16),RAT('\',SYS(16))+1)
 ? '     cViewName =  ' + TRANSFORM(cViewName) + ' - ' ;
                   + TYPE('cViewName ')+' /end/ '

See Also

JavaScript Editor js editor     Web development