Multiple Instances of Forms

Multiple instances for forms are automatic with VPM Enterprise. If you want to prevent a form from having multiple instances, do the following:

·       For forms called from menu options, put code in the menu Skip For to disable the menu option when the form is active. You could put WEXIST(“FormNameProperty”) in the SKIP FOR.

·       For forms called from command buttons or from code, you could use the following code:

   IF NOT WEXIST(“FormNameProperty”)
     Do Form <form name>
ENDIF

Tip: Starting with the second instance of a form, a number in parentheses is added to the form Caption property. This number appears in the Window menu. See the description of the nFormInstanceNumber_Start property of the Form_ class in the VPME 9.1 Technical Reference manual.

More:

Required Fields