User Tools

Site Tools


syntax:functions:removeend

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
Last revisionBoth sides next revision
syntax:functions:removeend [2021/08/15 02:26] craigtsyntax:functions:removeend [2021/08/15 02:50] – [See also] craigt
Line 9: Line 9:
 =====Arguments===== =====Arguments=====
 ^Argument^Type^Description^ ^Argument^Type^Description^
-|text|Text|Any text value from which the trailing characters are removed.|+|text|Text|Any text value from which the trailing //length// characters are removed.|
 |length|Number (Greater than 0)|The number of characters to remove from the end of //text//.| |length|Number (Greater than 0)|The number of characters to remove from the end of //text//.|
  
Line 28: Line 28:
   removeend('October 1, 2014', 6) //Returns 'October 1'   removeend('October 1, 2014', 6) //Returns 'October 1'
  
-  removeend(100200, 3) //Returns '200' (Number implicitly converted to text; value is returned as text)+  removeend(100200, 3) //Returns '100' (Number implicitly converted to text; value is returned as text)
  
   removeend('North' & char(10) & 'South', 7) //Returns 'Nort' (the line break - char(10) - counts as a character)   removeend('North' & char(10) & 'South', 7) //Returns 'Nort' (the line break - char(10) - counts as a character)
Line 37: Line 37:
   * [[syntax:functions:removechars|RemoveChars(text, string)]]   * [[syntax:functions:removechars|RemoveChars(text, string)]]
   * [[syntax:functions:removestart|RemoveStart(text, N)]]   * [[syntax:functions:removestart|RemoveStart(text, N)]]
 +  * [[syntax:functions:removetext|RemoveText(text, string)]]
syntax/functions/removeend.txt · Last modified: 2021/08/15 02:52 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki