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
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.
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 FoxPro.H Constant File type Extension
Visual class Library
Value DBC Type Extension
Addition of Visual FoxPro libraries (.FLL files) and applications (.APP files) do not call the QueryNewFile event.
Since this event does not directly add files to the project, if you wish to add other files when QueryNewFile is called, you should do this explicitly with your own code, using the Project Objects File Collection Add. For example, you could do this if you wanted the QueryNewFile event to call a Wizard, which you created, when adding a new file of a specific type.