Difference between revisions of "Error Messages/40781"
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == 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: | ||
− | : | + | :<code>TextTrim(" hello ") → "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.: | ||
− | : | + | :<code>TextTrim(" hello ", leftOnly: true) → "hello "</code> |
− | : | + | :<code>TextTrim(" hello ", rightOnly: true) → " hello"</code> |
If you specify both as true, this error message is issued. | If you specify both as true, this error message is issued. | ||
− | = | + | ==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
Enable comment auto-refresher