syntax:functions:remove
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
syntax:functions:remove [2021/07/21 15:32] – craigt | syntax:functions:remove [2021/07/21 16:18] – [Examples] craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Remove(text, | + | ====== Remove(text, |
Category: | Category: | ||
Line 6: | Line 6: | ||
This function removes a specified number of characters, from a specified starting point, within a text string. | This function removes a specified number of characters, from a specified starting point, within a text string. | ||
+ | **Return value type: | ||
\\ | \\ | ||
=====Arguments===== | =====Arguments===== | ||
- | ^Argument^Description^ | + | ^Argument |
- | |text|Any text string or value that can implicitly be converted to text.| | + | |text |Text|Any text string or value that can implicitly be converted to text.| |
- | |N_start|The N< | + | |start_pos |Integer greater than 0|The N< |
- | |N_chars|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. | ||
- | If //N_start// is a position past the end of the text, nothing is removed. | + | If //start_pos// is a position past the end of the text, nothing is removed. |
- | If //N_chars// exceeds the number of characters that can be removed, all characters from //N_start// to the end of //text// will be removed. | + | If //no_of_chars// exceeds the number of characters that can be removed, all characters from //start_pos// to the end of //text// will be removed. |
Line 28: | Line 26: | ||
=====Examples===== | =====Examples===== | ||
- | remove(' | + | remove(' |
- | remove(' | + | remove(' |
remove(' | remove(' | ||
remove(1203, | remove(1203, | ||
- | remove((10*10), | + | remove((10*10), |
- | remove(' | + | remove(' |
- | remove(' | + | remove(' |
\\ | \\ | ||
===== See also ===== | ===== See also ===== | ||
* [[syntax: | * [[syntax: |
syntax/functions/remove.txt · Last modified: 2021/08/15 02:53 by craigt