Difference between revisions of "Error Messages/40861"
Line 1: | Line 1: | ||
[[Category: Error messages]] | [[Category: Error messages]] | ||
− | == Error | + | == Error message examples == |
<pre style="background:white; border:white; margin-left: 1em; font-style:italic"> | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> |
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
orPosition
= Position of the matched subpattern.L
orLength
= Length of the matched subpattern.S
orSubpattern
= 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
Enable comment auto-refresher