Removes white chars from beginning and end of the string. If no such chars are found at begging or end of string, unchaned string is returned.



Function arguments

  • stringToTrim – (String) The string value to be trimmed

Return value

This function returns String.
Returns trimmed string


Example 1:
'result’ variable value will be „abc”.

result = Trim("   abc   ");

Example 2:
'result’ variable value will be „abc xyz”.

result = Trim("   abc xyz   ");

Example 3:
'result’ variable value will be „abcxyz”.

result = Trim("abcxyz");
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?