TextEdit.Format

From Xojo Documentation

Revision as of 13:36, 9 March 2021 by PLefebvre (talk | contribs) (Notes: Changed deprecated Masks to ValidationMasks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As String )
aTextEdit.Format = newStringValue
or
StringValue = aTextEdit.Format

New in 5.5

Supported for all project types and targets.

Formats the contents of the control when it loses the focus.

Notes

It uses the same formatting conventions as the Format function. To turn off formatting, set the Format property to the empty string, "".

If you need to enforce an entry format rather than permitting any entry, use the Format property in conjunction with the Mask property. See the description of the ValidationMask property and the section "Masks" in the Notes section.

Example

This line applies a dollar format when the user tabs out of the field.

Me.Format = "\$###,###.##"

See Also

Mask property