Skip to content

TMaskUtils.ValidateInput

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

Declaration

Source position: maskutils.pp line 106

public 
function TMaskUtils.ValidateInput : string;

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

Name Description
TryValidateInput
Value (input) String value to validate.
Mask The edit mask to use.
Exception