Skip to main content
Version: 6.1

Trim

This Function returns a <string>, which is the specified Source string with all the spaces at beginning and ending removed.

Parameters​

  • Source string <string> - String to remove the spaces from.
  • Trim Left <boolean> - Removes spaces from the left side of the Source string?
  • Trim Right <boolean> - Removes spaces from the right side of the Source string?

Examples​

  • Example 1

"<" + Trim(" Kalipso ", YES, YES) + ">"
Result = <Kalipso>

  • Example 2

"<" + Trim(" Kalipso ", YES, NO) + ">"
Result = <Kalipso >

  • Example 3

"<" + Trim(" Kalipso ", NO, YES) + ">"
Result = < Kalipso>

  • Example 4

"<" + Trim(" Kalipso ", NO, NO) + ">"
Result = < Kalipso >