Unit 'MaskUtils' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

FormatMaskText

Format a text according to a given mask

Declaration

Source position: maskutils.pp line 33

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

FormatMaskInput

  

Return an input mask text based on the edit mask

MaskDoFormatText

  

Return an input mask text without literals or space char

TMaskUtils

  

Class to manipulate and work with edit masks

TMaskUtils.ApplyMaskToText

TMaskUtils.GetTextWithoutSpaceChar


Documentation generated on: Sep 29 2022