Compartir a través de


dbc_AfterAppendProc Event

Occurs after the APPEND PROCEDURE command completes. There are two versions of the syntax.

PROCEDURE dbc_AfterAppendProc(cFileName, nCodePage, lOverwrite) 

PROCEDURE dbc_AfterAppendProc
LPARAMETERS cFileName, nCodePage, lOverwrite

Parameters

  • cFileName
    Specifies the name of a text file from which the stored procedures have been appended.

  • nCodePage,
    Specifies the code page of the text file from which the stored procedures were appended. Visual FoxPro copies the contents of the text file and, as it does so, automatically converts those contents to the code page you specify.

  • lOverWrite
    Specifies whether the current stored procedures in the database were overwritten by those in the text file. If the OVERWRITE keyword was omitted from the APPEND PROCEDURE command, the current stored procedures in the database are appended to any existing stored procedures in the text file.

Remarks

You can use the dbc_AfterAppendProc event to track access to the database after stored procedure are appended.

Example

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

See Also

Tasks

How to: Enable or Disable DBC Events

Reference

dbc_BeforeAppendProc Event

Other Resources

Events (Visual FoxPro)