Sign in Join
FPDoc Onlineexperiment

FormatMaskText function

In unit MaskUtils

Format a text according to a given mask.

Declaration

pascal
function FormatMaskText(const EditMask: string; const AValue: string)
: string

Arguments

EditMask

Edit mask to apply.

AValue

Value to apply edit mask to.

Function result

The formatted text.

Description

FormatMaskText formats aValue according to the mask placeholders found in EditMask and returns the resulting string. It replaces space characters in the format mask with the actual space character. This function uses an TMaskUtils instance to do the actual work.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.