Difference between revisions of "Error Messages/40781"

 
Line 1: Line 1:
= Error Text =
+
[[Category: Error messages]]
  
In function [[TextTrim]], the «leftOnly» and «rightOnly» parameters cannot both be true.
+
== Error text ==
  
= Cause =
+
:<code>''In function TextTrim, the «leftOnly» and «rightOnly» parameters cannot both be true.''</code>
 +
 
 +
== Cause ==
  
 
[[TextTrim]] removes leading and/or trailing spaces, for example:
 
[[TextTrim]] removes leading and/or trailing spaces, for example:
  
:[[TextTrim]]("    hello      ") &rarr; "hello"
+
:<code>TextTrim("    hello      ") &rarr; "hello"</code>
  
 
The optional parameters named in the error message allows you to trim only leading spaces, or only trailing spaces, e.g.:
 
The optional parameters named in the error message allows you to trim only leading spaces, or only trailing spaces, e.g.:
  
:[[TextTrim]]("    hello      ", leftOnly:true) &rarr; "hello      "
+
:<code>TextTrim("    hello      ", leftOnly: true) &rarr; "hello      "</code>
:[[TextTrim]]("    hello      ", rightOnly:true) &rarr; "    hello"
+
:<code>TextTrim("    hello      ", rightOnly: true) &rarr; "    hello"</code>
  
 
If you specify both as true, this error message is issued.
 
If you specify both as true, this error message is issued.
  
= See Also =
+
==Remedies==
 +
Change the parameters to [[TextTrim]] so that either <code>leftOnly: true</code> or <code>rightOnly: true</code> but not both.
  
 +
== See Also ==
 +
* [[Function calls and parameters]]
 +
* [[Text functions]]
 
* [[TextTrim]]
 
* [[TextTrim]]
 
* [[TextReplace]]
 
* [[TextReplace]]

Latest revision as of 20:55, 4 April 2016


Error text

In function TextTrim, the «leftOnly» and «rightOnly» parameters cannot both be true.

Cause

TextTrim removes leading and/or trailing spaces, for example:

TextTrim(" hello ") → "hello"

The optional parameters named in the error message allows you to trim only leading spaces, or only trailing spaces, e.g.:

TextTrim(" hello ", leftOnly: true) → "hello "
TextTrim(" hello ", rightOnly: true) → " hello"

If you specify both as true, this error message is issued.

Remedies

Change the parameters to TextTrim so that either leftOnly: true or rightOnly: true but not both.

See Also

Comments


You are not allowed to post comments.