Sign in Join
FPDoc Onlineexperiment

TMaskBase.Exception_MissingCloseChar procedure

Member of TMaskBaseprotectedIn unit Masks

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

Declaration

pascal
class procedure Exception_MissingCloseChar(const aMaskChar: string; 
 aOffset: Integer=- 1); static

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

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