User Tools

Site Tools


syntax:functions:trimend

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
syntax:functions:trimend [2015/04/03 18:37] elenapsyntax:functions:trimend [2021/08/11 15:19] (current) – [Examples] craigt
Line 1: Line 1:
-===== TrimEnd(text) =====+====== TrimEnd(text) =====
 +Category:  Text function
  
-Trims off trailing spaces from //text//. Leading spaces will be preserved. +\\  
 +=====Description===== 
 +This function trims off all trailing spaces and other non-printing characters (see //Remarks//from //text// Leading spaces are preserved.
  
- Example   Result  +\\  
-|  trim('Columbia '  |  Columbia  |+=====Arguments===== 
 +^Argument^Type^Description
 +|text|Text|Any text value or other value that can be implicitly converted to text if required.| 
 + 
 +**Return value type:** Text 
 + 
 +\\  
 +=====Remarks===== 
 +Besides spaces, it also removes other non-printing, white-space characters such as tabulations, form feeds, etc. [[https://docs.microsoft.com/en-us/dotnet/api/system.char.iswhitespace?view=netcore-3.1#remarks|The full list of removed white-space characters]]. 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  trimend('Columbia '//Returns 'Columbia' 
 + 
 +  trimend('  Columbia  ') //Returns '  Columbia'  (Leading spaces retained) 
 + 
 +\\  
 +===== See also ===== 
 +  * [[syntax:functions:trim|Trim(text)]] 
 +  * [[syntax:functions:trimstart|TrimStart(text)]]
  
-**See also** 
-  * [[syntax:functions:trim]] 
-  * [[syntax:functions:trimstart]] 
syntax/functions/trimend.txt · Last modified: 2021/08/11 15:19 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki