User-Created Project Programs

VPM Enterprise can run a program that you create when a project is opened and when a project is closed. You can create programs to perform whatever tasks you desire at these points. You must give the programs these VPME expected names:

·       S<Prefix>UPO: When a project is opened, the program S<Prefix>UPO will be run if it exists.

·       S<Prefix>UPC: When a project is closed, the program S<Prefix>UPC will be run if it exists.

The programs can reside in any of the VPME or project directories.

The programs are passed a numeric parameter that identifies the reason the project is being opened or closed. Those reasons are as follows.

The project has been opened because:

Parameter

Reason

1

The project was opened from the Open Project dialog.

2

A new project was created.

3

A project was copied.

4

VPME was restarted after testing an application.

5

VPME was restarted after exiting to VFP.

The currently open project will be closed because:

Parameter

Reason

1

Another project is going to be opened from the Open Project dialog.

2

The Close Project option on the menu was selected or the button on the application toolbar was clicked.

3

It is being deleted.

4

A new project is going to be created.

5

A project is going to be copied.

6

VPME is being exited (quit).

7

VPME is being exited to run the application.

8

VPME is being exited to go to VFP.

Tip: You will appreciate the ability to run a program when a project is opened or closed as you gain experience with VPM Enterprise and begin to customize the VPM Enterprise environment to fit your needs. See the VPM Enterprise Technical Reference manual to learn all about how you can customize VPM.

 

More:

Overview