The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:property LastError: integer;

The read only property LastError contains the error number of the last error encountered during the compilation of a regular expression when it is assigned to RegExp. The following error numbers are possible:

0 no error
1 regular expression must not start with $, *, ?, or +
2 circumflex not allowed here
3 no character allowed after end of line
4 empty set
5 circumflex has to be quoted in set
6 mismatch of set brackets
7 minus not allowed here
8 mismatch of group brackets
9 *, ?, + have to be applied to groups or sets only

Note that LastError has to be checked only if StopOnError is set to FALSE.

Last Update: 2012-Okt-20