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
Example
В | Copy Code |
---|
* 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