| 9 January 2002 |
Stuff() |
| Author | ScriptLogic Corporation |
| Action | Allows to add, replace, remove or substitute characters of one text string with another. |
| Syntax | Stuff ( "expC1", expN1, [expN2], ["expC2"] ) |
| Parameters | expC1 (Required / String) The string in which the replacement occurs. expN1 (Required / Numeric) Specifies the position in expC1 where the replacement begins. expN2 (Optional / Numeric) The number of characters to be replaced is specified by expN2. If expN2 is 0, the replacement string expC2 is inserted into expC1. expC2 (Optional / String) The replacement character expression is specified by expC2. If expC2 is the null string, the number of characters specified by expN2 are removed from expC1. |
| Remarks | Relatively small amount of code with very useful functionality. |
| Returns | Returns a character string created by replacing a specified number of characters in one character string with another character string. |
| Dependencies | None. |
| Examples | |
| Source | |