Masked Edit Control, Mask Property Clarification

Last reviewed: June 21, 1995
Article ID: Q93129
The information in this article applies to:
  • Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0

SUMMARY

This article clarifies the description of the Masked Edit Control's Mask property given in "Microsoft Visual Basic Professional Features" on pages 233-234, and in the help file CTRLREF.HLP.

MORE INFORMATION

Example Mask Settings

The description of the Mask property includes the following statement:

   ..., the following standard, predefined input masks are
   available at design time.

The statement is followed by a list of possible Mask settings such as:

   ##-???-##    Medium date (US). Example: 20-May-92

The settings listed are example settings. The Masked Edit control does not handle these particular settings specially, either at design time or run time. In this sense, they are neither standard nor predefined as the description states.

For example, the setting ##-???-## does not restrict the user to valid dates. This setting only requires two digits, three letters, and two more digits. So, for example, an input of 99ZZZ99 is valid with this setting.

Mask Character Place Holder "&"

The description of the place holder "&" is given as:

   &   Character placeholder. The valid value for the placeholder is
       any symbol or alphanumeric character.

This means that "&" is a place holder for any printable character.


Additional reference words: 2.00 3.00
KBCategory: kbprg
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.