Difference between revisions of "Error Messages/40910"

 
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
The value passed to the <<subPattern>> parameter of [[SplitText]] must be a number or text.
+
== Error message examples ==
 +
:<code>''The value passed to the «subPattern» parameter of SplitText must be a number or text.''</code>
  
= Cause =
+
== Cause ==
 
+
You did not pass a number or a text as the «subPattern» parameter to the [[SplitText]] function. The «subPattern» parameter can be used to specify the separator when using regular expressions with the [[SplitText]] function. Please click on the following link to learn more about using [[Splittext#Regular_Expressions|regular expression with SplitText]].
You did not pass a number or a text as the <<subPattern>> parameter to the [[SplitText]] function. The <<subPattern>> parameter can be used to specify the separator when using regular expressions with the [[SplitText]] function. Please click on the following link to learn more about using [[Splittext#Regular_Expressions|regular expression with SplitText.]]
 
  
 
Example of calling [[SplitText]] using regular expressions:<br>
 
Example of calling [[SplitText]] using regular expressions:<br>
<code>
+
:<code>SplitText('17.5 19 1. .5 0.1111', '(\d(?<a>\.)\d)|(?<a>\s+)', re: 1, subpattern: 'a') &rarr;</code>
SplitText('17.5 19 1. .5 0.1111', '(\d(?<a>\.)\d)|(?<a>\s+)', re:1, subpattern:'a' )
+
::<code>['17','5','19','1.','.5','0','1111']</code>
Result: ['17','5','19','1.','.5','0','1111']
 
</code>
 
 
 
= Remedies =
 
  
Specify either the subpattern number or the subpattern name as the <<subPattern>> parameter to [[SplitText]].
+
== Remedies ==
 +
Specify either the subpattern number or the subpattern name as the «subPattern» parameter to [[SplitText]].
  
<br><comments />
+
==See Also==
 +
* [[SplitText]]
 +
* [[Regular Expressions]]

Latest revision as of 23:54, 22 February 2016


Error message examples

The value passed to the «subPattern» parameter of SplitText must be a number or text.

Cause

You did not pass a number or a text as the «subPattern» parameter to the SplitText function. The «subPattern» parameter can be used to specify the separator when using regular expressions with the SplitText function. Please click on the following link to learn more about using regular expression with SplitText.

Example of calling SplitText using regular expressions:

SplitText('17.5 19 1. .5 0.1111', '(\d(?<a>\.)\d)|(?<a>\s+)', re: 1, subpattern: 'a') →
['17','5','19','1.','.5','0','1111']

Remedies

Specify either the subpattern number or the subpattern name as the «subPattern» parameter to SplitText.

See Also

Comments


You are not allowed to post comments.