New Project Objects

Select the New Project Objects option on the PM-Admin/ProMatrix Setup menu to view and maintain the records in the New Project Objects table.

When you create a new project, VPM Enterprise uses the New Project Objects table to:

·       Identify objects, or files, to copy to the new project’s directories.

·       Identify objects, or files, to include in the new project’s Visual FoxPro Project Manager.

The New Project Objects table that comes with VPM Enterprise is set up to add VPM Enterprise provided files to new projects.

You can use the New Project Objects table to:

·       Include your own files and form sets in all new projects.

·       Replace a VPM Enterprise new project file with your own version of the file.

When you add a menu option to the New Project Menus, you must add the program the option calls, if any, to the New Project Objects table so that program will be included in new projects. You should also add any tables and indexes the menu option uses to the New Project Objects table so they will be included in new projects as well.

The New Project Objects table is named SSYSFVAR.DBF and resides in VPM Enterprise’s DATA directory.

Ø Including Your Own Files in New Projects

You can add a record to the New Project Objects table that will:

·       Copy a file into all new projects and give it an application-specific name, and;

·       Insert the file into the Visual FoxPro Project Manager of new projects.

You can do both in one record or just one of them.

You only need to add one record to the New Project Objects table to copy a file and its ancillary files with the same name but different extensions to new projects. This is useful for adding tables that have accompanying memo files or index files.

Tip: Begin the names of the files you want VPM Enterprise to copy into all new projects with “DUSR”. If you do, VPM Enterprise will replace the “USR” with the application prefix when you create a new project. Also, store the files in the appropriate VPM Enterprise subdirectory. For example, store your .PRG files in VPM Enterprise’s PRGS directory, store form files in the FORMS directory, and so on. If you store the files in the VPM Enterprise subdirectories, VPM Enterprise will have no trouble finding them when you create a new project.

Ø To include your own files in new projects

·       Select the New Project Objects option on the VPM Enterprise PM-Admin/ProMatrix Setup menu. VPM Enterprise displays the New Project Objects form.

·       Click the New button on the toolbar. VPM Enterprise displays a blank record for entering data.

·       Enter the name of a file you want to include in new projects in the Object Name field. Do not include the file extension. The extensions are entered in the Copy Extensions field (see step 6 below). If you’re using the “DUSR” naming convention, the file name should begin with “DUSR”. VPM Enterprise will replace “USR” with the application prefix when it copies the file to a new project.

·       Enter a brief description of the file in the Description field.

·       If you want to add the file to a new project’s Visual FoxPro Project Manager, enter the file’s extension in the Build Extension field. The valid extensions and the types of files you can add to the Project Manager when VPM Enterprise creates a new project are shown in the following table.

Extension

File Type

BMP

Bitmap

FRX

Report

LBX

Label

MNX

Menu

PLB

Library

PRG

Program

SPR

Form

·       If you want to copy file(s) with the name you entered in the Object Name field to new projects, enter the file extensions (separated by commas) of the file(s) in the Copy Extensions field. For example, if you want a table with a memo file and an index file of the same name copied into new projects, you would enter the following in the Copy Extensions field:

DBF,CDX,FPT

·       When you create a new project, VPM Enterprise will copy all the files it finds with the name you enter in the Object Name field and an extension you enter in the Copy Extensions field. The project directories to which the files are copied is determined by the contents of the Copy Extensions field, as follows:

·       If “SCX” is in the field, the files are copied to the \FORMS directory.

·       If “PRG” is in the field, the files are copied to the \PRGS directory.

·       If “MNX” is in the field, the files are copied to the \MENUS directory.

·       If “DBF” is in the field, the files are copied to the \DATA directory.

·       If “FRX”, “LBX” or “QPR” is in the field, the files are copied to the \REPORTS directory.

·       Otherwise, the files are copied to the project’s home directory.

·       If the file to be copied or added to the Project Manager is stored in the VPM Enterprise home directory or one of its subdirectories, VPM Enterprise will find it when you create a new project. Otherwise, you need to enter the path to the file in the Copy From field. Enter the drive letter and directories in the path.

·       Click the Save button on the toolbar to save your entries.

·       Repeat steps 2 - 8 for each file you want to include in all new projects.

More:

New Project Developer Info