How to Begin Creating a New Application Object

Application Objects are either run directly from a menu option or are called by another object. For example, a form might run immediately when its menu option is selected. If the form calls a program from a command button, the program is a Called Object in VPM Enterprise terminology. The program is a Called Object because it’s called by another Application Object - the form.

Menu Objects and Called Objects:  In VPM Enterprise, a “Menu Object” is an Application Object that runs directly from a menu option.  If you need to create an Application Object that doesn’t run directly from a menu, you are creating a “Called Object”. You create Called Objects using the Called Objects box on the Object Editor of the calling object. You can then see what an Application Object calls by viewing the Called Objects list on its Object Editor.

Whether an Application Object is a Menu Object or a Called Object, doesn’t really affect how you create the object. It just affects where you create the object. If the Application Object is a Menu Object, you create the object from a menu option on the Object Builder. If the object is a Called Object, you create it from the Object Editor of the object that calls it.

Ø To begin creating a Menu Object

1.   On the Object Builder, click the object’s menu prompt. VPM Enterprise displays the New Object Type Dialog.

                    

2.   Select the type of object you want to create and click OK. You can create a form, a program, a report, a query or a label. You can also enter a Bar # or a menu procedure.

3.   VPM Enterprise displays the New Object Name dialog. Enter a file name for your object. You can enter a long name that contains spaces. Click OK.

   If you enter a file name that already exists, VPM Enterprise will warn you and allow you to change the name. If you don’t change the name, VPM Enterprise will open the existing file in the Object Editor.

Tip: If you’re creating a program, you can also enter a period and file extension if for some reason you want the program file to have an extension other than .PRG.

4.   VPM Enterprise displays the Object Editor for the object. Use the Object Editor to create the object.

The next time you select this menu option on the Object Builder, you’ll go right to the Object Editor.

Ø To begin creating a Called Object

1.   On the Object Builder, click the menu prompt that runs the object that calls the object you want to create. VPM Enterprise displays the Object Editor of the calling object.

    

   If the calling object is itself a Called Object, you must open the calling object’s Object Editor. Either (a) double-click the calling object’s name on the Called Objects list that contains it or (b) highlight the name and click the Select button. VPM Enterprise then displays the Object Editor of the calling object.

2.   When the Object Editor of the calling object is displayed, click the New button in the Called Objects box. VPM Enterprise displays the New Object dialog for Called Objects.

3.   Select the type of Application Object you want to create. Enter a file name for your Application Object. You can enter a long name that contains spaces. Click OK.

   If you enter a file name that already exists, VPM Enterprise will warn you and allow you to change the name.  If you don’t change the name, VPM Enterprise will open the existing file in the Object Editor.

Note: If you’re creating a program, you can also enter a period and file extension if for some reason you want the program file to have an extension other than .PRG.

4.   VPM Enterprise displays the name of the new Called Object in the Called Objects list.

5.   ith the name of the new Called Object highlighted, click the Select button. VPM Enterprise displays the Object Editor for the Application Object. Use the Object Editor to create the Application Object.

More:

Modifying an Application Object