Visual Basic: MaskedEdit Control

PromptInclude Property

See Also   Example   Applies To

Specifies whether prompt characters are contained in the Text property value. Use the PromptChar property to change the value of the prompt character.

Syntax

[form.]MaskedEdit.PromptInclude [ = { True | False }]

Remarks

The following table lists the PromptInclude property settings for the Masked Edit control.

Setting Description
False The value of the Text property does not contain any prompt character.
True (Default) The value of the Text property contains prompt characters, if any.

If the Masked Edit control is bound to a data control, the PromptInclude property affects how the data control reads the bound Text property. If PromptInclude is False, the data control ignores any literals or prompt characters in the Text property. In this mode, the value that the data control retrieves from the Masked Edit control is equivalent to the value of the ClipText property.

If PromptInclude is True, the data control uses the value of the Text property as the data value to store.

Data Type

Integer (Boolean)