VSFlexString Control > VSFlexString Properties, Events, and Methods > VSFlexString Properties > Error Property |
Returns status information after each pattern-matching operation.
val% = [form!]VSFlexString.Error
Setting or getting most properties in the VSFlexString control cause it to perform a pattern-matching operation. If an error occurs during this operation, an error code is returned in the Error property.
Possible values for the Error property are described below:
Constant |
Value |
Description |
flexErrNone |
0 |
No Error. |
flexErrOutOfMemory |
1 |
Out of Memory. |
flexErrSquareB |
2 |
The pattern has unmatched square brackets (e.g. "[oops"). |
flexErrCurlyB |
3 |
The pattern has unmatched square brackets (e.g. "{oops"). |
flexErrBadPattern |
4 |
Invalid pattern for replace operation (e.g. Pattern = "": Replace = "Hello") |
flexErrBadTagIndex |
5 |
Tag index out of range (e.g. Pattern = "{[a-z]}{[a-z]}": ? TagString(2)) |
flexErrNoMatch |
6 |
No match was found (e.g. Text = "Paul": Pattern = "John") |
flexErrInvalidMatchIndex |
7 |
Match index out of range (e.g. Text = "Paul": Pattern = "Paul": ? MatchString(2)) |
StringErrorSettings (Enumeration)