Microsoft KB Archive/110098

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 10:51, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


PC Forms: Masked Edit Control Not Automatically Packaged

Article ID: 110098

Article Last Modified on 10/30/2006



APPLIES TO

  • Microsoft Exchange Electronic Forms Designer 5.0, when used with:
    • Microsoft Mail for PC Networks 3.0
    • Microsoft Mail for PC Networks 3.2



This article was previously published under Q110098

SUMMARY

When you create a custom form using version 1.0 of the Microsoft Electronic Forms Designer, data entered into a Masked Edit control will not automatically be written to the MEF Package when the form is sent. The code to package and unpackage data in a Masked Edit control is not included in the E-Forms toolkit.

MORE INFORMATION

You can add code to the WriteTaggedControls and ReadTaggedControls functions so the Masked Edit control is automatically included in the MEF Package. To do so, perform the following steps:

  1. Open your E-Form project in Visual Basic.
  2. In the Project window, select EFORM.BAS.
  3. In the Procedures drop-down list box, select WriteTaggedControls.
  4. Scroll to the section of the code that is commented "'Add other custom controls here".
  5. Add the following code directly below the comment:

          ElseIf TypeOf ctrl Is MaskEdBox Then
            MEFWriteText package, Tag, CStr(ctrl.Text)
  6. From the Procedures drop-down list box, select ReadTaggedControls.
  7. Scroll to the section of the code that is commented "'Add other custom controls here".
  8. Add the following code directly below the comment:

       ElseIf TypeOf ctrl Is MaskEdBox Then
         ctrl.Text = MEFReadText(package, Tag, "")



Additional query words: 1.00

Keywords: KB110098