Difference between revisions of "Error Messages/40861"

m (Created page with '= 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''' …')
 
Line 6: Line 6:
 
= Cause =
 
= 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.
+
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.
+
'''P''' or '''Position'''    -> Position of the matched subpattern.
'''L''' or '''Length'''      -> Length of the matched subpattern.
+
'''L''' or '''Length'''      -> Length of the matched subpattern.
'''S''' or '''Subpattern'''  -> Matched subpattern.
+
'''S''' or '''Subpattern'''  -> Matched subpattern.
'''#''' or '''#Subpattern''' -> Number of 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:
 
You can also get back an array of a subset of above return types. The following is an example taken from the User Guide:

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']) -->> [4,'dInT']

Remedies

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



You are not allowed to post comments.

Comments
<comments />