Sign in Join
FPDoc Onlineexperiment

TCustomMaskEdit.GetTextWithoutMask function

Member of TCustomMaskEditprotectedIn unit MaskEdit

Gets the text value for the control without formatting applied by an edit mask.

Declaration

pascal
function GetTextWithoutMask(Value: TCaption): TCaption

Arguments

Value

Text value for the control without mask characters or formatting.

Function result

Value for the control without formatting applied by EditMask.

Description

GetTextWithoutMask is method used to get the text for the specified Value without the formatting applied by the EditMask. It ensures that any occurrences of SpaceChar not used as a mask literal are replaced with #32. Other mask literals are removed from Value. If the mask indicates it is saved as part of the data, leading or trailing whitespace is trimmed as required.

GetTextWithoutMask is used in the implementation of the RealGetText method.

See also

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