Error Messages/40861

Error Message Examples

Bad value passed to the <<return>> parameter of FindInText: "a".
When specified, it must be 'P', 'L', 'S', or '#'.

Cause

The return parameter to the FindInText function, while searching for regular expression, can be specified to one of the following values to specify the return type:

P or Position    -> Position of the matched subpattern.
L or Length      -> Length of the matched subpattern.
S or Subpattern  -> Matched subpattern.
# or #Subpattern -> Number of matched subpattern.

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 />