Condividi tramite


dbc_BeforeCreateView Event

Occurs before a SQL view (updateable cursor) is created.

PROCEDURE dbc_BeforeCreateView(cViewName) 

-or-

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

Enable or Disable DBC Events | dbc_AfterCreateView Event