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

TMaskUtils.ValidateInput

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

Declaration

Source position: maskutils.pp line 99

public function TMaskUtils.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

TryValidateInput

  

Value

  

(input) String value to validate.

Mask

  

The edit mask to use.

Exception


Documentation generated on: Jul 24 2023