Sign in Join
FPDoc Onlineexperiment

TMaskUtils.ValidateInput function

Member of TMaskUtilspublicIn unit MaskUtils

Check that the Value text is valid for the given mask.

Declaration

pascal
function ValidateInput: string

Function result

Value with the editmask applied.

Description

ValidateInput checks that the text in Value satisfies the given mask in Mask and returns the value with the mask applied to it. If Value does not satisfy the mask, an exception is raised. If you don't want an exception, use TryValidateInput instead.

Errors

If Value does not satisfy the mask, an Exception is raised.

See also

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