The information in this article applies to:
SUMMARYWith version 1.0 of Microsoft Electronic Forms Designer, it is possible to create a single executable file that contains multiple E-forms. By modifying the custom message declaration and adding code to the E-form project, a single executable file can be created that includes multiple forms. This can be useful if there is limited storage space for E-form executable files. MORE INFORMATIONBy adding additional information to the custom message command string, it is possible to pass information to the E-form executable file regarding which "instance" to load. In addition, modifying code in the EFORM.BAS file determines the steps to take for each form. This can be accomplished in two steps: Step 1: Defining the Custom Message ClassFor example, suppose the E-form executable file, SAMPLE.EXE contains two instances of E-forms you want to use. The entries in the [Custom Messages] section of the MSMAIL.INI would be as follows:IPM.VendorName.Sample111=3.0;;Sample Form 1;;MEFLIB.DLL;NOTE: Both custom message classes access the same executable file (SAMPLE.EXE). However, each entry includes a unique addition to the command string (-MYFLAG vs. -MYOTHERFLAG). Step 2: Modifying the CodeThe next step is to add code to the E-form project to determine what to do when a custom command line is passed. This can be accomplished by adding the following lines to the ParseCommandLine function defined in EFORM.BAS:
The code written in ParseCommandLine will determine what action is taken
when a particular command string is passed.
Additional query words: 1.00
Keywords : |
Last Reviewed: November 6, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |