User Tools

Site Tools


syntax:functions:remove

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
Next revisionBoth sides next revision
syntax:functions:remove [2021/07/21 15:38] – [Remarks] dmitrysyntax:functions:remove [2021/07/21 16:17] – [Return value type] craigt
Line 13: Line 13:
 |no_of_chars |Integer greater than 0 |The number of characters to remove.| |no_of_chars |Integer greater than 0 |The number of characters to remove.|
 \\  \\ 
-====Return value type==== 
-Text 
  
-\\  
 =====Remarks===== =====Remarks=====
 All three arguments must be supplied or a warning applies in each row of the column. All three arguments must be supplied or a warning applies in each row of the column.
Line 32: Line 29:
   remove('Mrs. Smith", 3, 1) = 'Mr. Smith'   remove('Mrs. Smith", 3, 1) = 'Mr. Smith'
   remove(1203, 2, 2) = '13'   remove(1203, 2, 2) = '13'
-  remove((10*10), 1, 1) = '00'  (removes the first single character from '100') +  remove((10*10), 1, 1) = '00'  //removes the first single character from '100'. 
-  remove('Alexander', 12, 2) = 'Alexander'  (N_start is past the end of the text - nothing is removed) +  remove('Alexander', 12, 2) = 'Alexander'  //N_start is past the end of the text - nothing is removed. 
-  remove('Scott', 4, 4) = 'Sco'  (N_chars extends past the end of text; only available characters are removed)+  remove('Scott', 4, 4) = 'Sco'  //N_chars extends past the end of text; only available characters are removed.
  
 \\  \\ 
 ===== See also ===== ===== See also =====
   * [[syntax:functions:mid]]   * [[syntax:functions:mid]]
syntax/functions/remove.txt · Last modified: 2021/08/15 02:53 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki