Occurs before a view is taken offline. There are two versions of the syntax.
PROCEDURE dbc_BeforeCreateOffline(cViewName, cPath)
PROCEDURE dbc_BeforeCreateOffline LPARAMETERS cViewName, cPath
- Specifies the name of the view being taken offline.
- Specifies the directory in which the offline view is placed and the name of the offline view.
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.
* 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