Error Messages/40862

< Error Messages
Revision as of 23:59, 5 February 2010 by AManandhar (talk | contribs) (Created page with '= Error Message Examples = Bad value (-2) passed to the <<subPattern>> parameter of FindInText. Must be non-negative. = Cause = The '''subPattern''' parameter to the [[F…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Error Message Examples

Bad value (-2) passed to the <<subPattern>> parameter of FindInText.
Must be non-negative.

Cause

The subPattern parameter to the FindInText function, while searching for regular expression, must either be the subpattern name or the subpattern number. You have passed in a negative value to the subPattern parameter which is not allowed.

Defining a subpattern: You can define a subpattern by placing the subpattern inside parenthesis.

Naming a subpattern: You can name a subpattern by following the opening parenthesis by a question mark and then the name between two angle brackets.


You can also get back an array of a subset of above return types. The following is an example taken from the User Guide:

FindInText('d.*T', 'FindInText', re:1,return:['L','S'])
Returns: [4,'dInT']

Remedies

Correct the return parameter to the FindInText function to a recognized value.



You are not allowed to post comments.

Comments
<comments />