QueryNewFile Event
Occurs when the New button is pressed in the Project Manager, just before a file is added to a project.
PROCEDURE Object.QueryNewFile LPARAMETERS cFileType |
Parameters
- cFileType
-
Specifies the file type selected in Project Manager when the New button was pressed. These values are the same as the File object Type property.
QueryNewFile event is also supported on database container items, a special case, by the following cFileType values.
Value FoxPro.H Constant File type Extension d
FILETYPE_DATABASE
Database
.dbc
D
FILETYPE_FREETABLE
Free table
.dbf
Q
FILETYPE_QUERY
Query
.qpr
K
FILETYPE_FORM
Form
.scx
R
FILETYPE_REPORT
Report
.frx
B
FILETYPE_LABEL
Label
.lbx
V
FILETYPE_CLASSLIB
Visual class Library
.vcx
P
FILETYPE_PROGRAM
Program
.prg
M
FILETYPE_MENU
Menu
.mnx
T
FILETYPE_TEXT
Text file
varies
The following table describes cFileType values for items specific to the DBC container. Except for the DBC table, which adds a table to the project, these items affect only the DBC.
Value DBC Type Extension p
Stored Procedure
t
DBC table
.dbf
c
Connection
r
Remote View
l
Local View
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08