JavaScript Editor js editor     Web development 



Main Page

Occurs immediately before a DROPOFFLINE(В ) function, which returns an offline view on line. There are two versions of the syntax.

PROCEDURE dbc_BeforeDropOffline(cViewName, cPath) 
PROCEDURE dbc_BeforeDropOffline
LPARAMETERS cViewName, cPath

Parameters

cViewName


Specifies the name of the offline view being taken back online.
cPath


Specifies the directory in which the offline view is located.

Return .F. from this procedure to prevent returning the view online.

Remarks

You can use the dbc_BeforeDropOffline event to track attempted access to the database before an offline view is taken back online.

Example

В Copy Code
* Reports to the screen Event name, where it is called from and ;
* the parameter passed.
PROCEDURE dbc_BeforeDropOffline ;
         (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



JavaScript Editor js editor     Web development