Difference between revisions of "Error Messages/40861"

 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
  Bad value passed to the <<return>> parameter of [[FindInText]]: "a".
+
== Error message examples ==
 +
 
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
  Bad value passed to the «return» parameter of FindInText: "a".
 
  When specified, it must be 'P', 'L', 'S', or '#'.
 
  When specified, it must be 'P', 'L', 'S', or '#'.
 +
</pre>
  
= 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:
 
  
'''P''' or '''Position'''    -> Position of the matched subpattern.
+
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:
'''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:
+
:<code>P</code> or <code>Position</code>    = Position of the matched subpattern.
 +
:<code>L</code> or <code>Length</code>    = Length of the matched subpattern.
 +
:<code>S</code> or <code>Subpattern</code>  = Matched subpattern.
 +
:<code>#</code> or <code>#Subpattern</code> = Number of matched subpattern.
  
<code>
+
You can also get back an array of a subset of above return types. The following is an example taken from the [[Analytica User Guide]]:
FindInText('d.*T', 'FindInText', re:1,return:['L','S'])
 
</code> -->> [4,'dInT']
 
  
= Remedies =
+
:<code>FindInText('d.*T', 'FindInText', re: 1, return: ['L', 'S']) &rarr; [4, 'dInT']</code>
  
Correct the '''return''' parameter to the [[FindInText]] function to a recognized value.
+
== Remedies ==
 +
Correct the «return» parameter to the [[FindInText]] function to a recognized value.
  
<br><comments />
+
==See Also==
 +
* [[FindInText]]
 +
* [[Regular Expressions]]

Latest revision as of 23:35, 24 February 2016


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 Analytica 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.

See Also

Comments


You are not allowed to post comments.