Error Property

Returns status information after each pattern-matching operation.

Syntax

val% = [form!]VSFlexString.Error

Remarks

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 (for example, "[oops").

flexErrCurlyB

3

The pattern has unmatched square brackets (for example, "{oops").

flexErrBadPattern

4

Invalid pattern for replace operation (for example, Pattern = "": Replace = "Hello")

flexErrBadTagIndex

5

Tag index out of range (for example, Pattern = "{[a-z]}{[a-z]}": ? TagString(2))

flexErrNoMatch

6

No match was found (for example, Text = "Paul": Pattern = "John")

flexErrInvalidMatchIndex

7

Match index out of range (for example, Text = "Paul": Pattern = "Paul": ? MatchString(2))

 

Data Type

StringErrorSettings (Enumeration)

See Also

VSFlexString Control