Difference between revisions of "Error Messages/40861"

Line 17: Line 17:
 
<code>
 
<code>
 
FindInText('d.*T', 'FindInText', re:1,return:['L','S'])
 
FindInText('d.*T', 'FindInText', re:1,return:['L','S'])
</code> -->> [4,'dInT']
+
 
 +
Returns: [4,'dInT']
 +
</code>
  
 
= Remedies =
 
= Remedies =

Revision as of 22:48, 5 February 2010

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