Condividi tramite


dbc_BeforeCreateOffline Event

Occurs before a view is taken offline

PROCEDURE dbc_BeforeCreateOffline(cViewName, cPath) 

-Or-

PROCEDURE dbc_BeforeCreateOffline
LPARAMETERS cViewName, cPath

Parameters

  • cViewName
    Specifies the name of the view being taken offline.
  • cPath
    Specifies the directory in which the offline view is placed and the name of the offline view.

Remarks

You can use the dbc_BeforeCreateOffline event to verify appropriate values for cViewName and cPath or use those parameters in a procedure to track attempted access to the database before an offline view is created.

Return .F. from this procedure to prevent the view from taken offline.

Example

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

See Also

Enable or Disable DBC Events | dbc_AfterCreateOffline Event