Difference between revisions of "Error Messages/40861"
AManandhar (talk | contribs) 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''' …') |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | Bad value passed to the | + | == 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: | |
− | |||
− | |||
− | |||
− | + | :<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. | ||
− | + | 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]]: | |
− | |||
− | |||
− | + | :<code>FindInText('d.*T', 'FindInText', re: 1, return: ['L', 'S']) → [4, 'dInT']</code> | |
− | Correct the | + | == Remedies == |
+ | Correct the «return» parameter to the [[FindInText]] function to a recognized value. | ||
− | + | ==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
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