Microsoft KB Archive/93129

= Masked Edit Control, Mask Property Clarification =

Article ID: 93129

Article Last Modified on 12/12/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 3.0 Professional Edition
 * Microsoft Visual Basic 2.0 Professional Edition
 * Microsoft Visual Basic 3.0 Professional Edition

-



This article was previously published under Q93129



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



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:


 * 1) -???-## 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 &quot;&&quot;
The description of the place holder &quot;&&quot; is given as:

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

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

Additional query words: 2.00 3.00

Keywords: KB93129

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.