Text Property (MaskedEdit Control)

       

Sets or returns the text contained in the control. This property is not available at design time.

Syntax

[form.]MaskedEdit.Text[ = string$]

Remarks

This property sets and retrieves the text in the Masked Edit control, including literal characters and underscores that are part of the input mask. When setting the Text property, the string$ value must match the characters in the input mask exactly, including literal characters and underscores.

Note   The ClipMode property setting has no effect on the value of the Text property.

The SelText property provides an easier way of setting the text in the Masked Edit control.

Data Type

Variant