[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'Masks' (#lazutils)

TMaskBase.Exception_MissingCloseChar

Raises an EMaskError exception when the closing ']' character is omitted from a set or range expression.

Declaration

Source position: masks.pas line 200

protected class procedure TMaskBase.Exception_MissingCloseChar(

  const aMaskChar: string;

  aOffset: Integer = - 1

);

Arguments

aMaskChar

  

Mask character found instead of the expected value.

aOffset

  

Offset in the mask expression where the error was found.

Description

Exception_MissingCloseChar is a class procedure used to raise an EMaskError exception when the closing ']' character is omitted from a set or range expression. The exception message is determined by the value in the aOffset argument. When aOffset is a positive value (or zero), the value in rsMissingCloseCharMaskAt is used as the exception message. Otherwise, the value in rsMissingCloseCharMask is used.

Exception_MissingCloseChar is called from the private CompileRange method in TMaskUTF8 when the range or set expression is not closed.

See also

TMaskUTF8.Compile

  

Examines the mask expression and creates a list of op codes.


Version 4.0 Generated 2025-05-03 Home