XFA Specification
Chapter 23, FormCalc Specification
String Built-in Functions
888
Stuff()
This function inserts a string into another string.
Syntax
Stuff(s1, n1, n2[, s2])
Parameters
s1
is the source string.
n1
is the character position in string s1 to start stuffing.
If n1 is less than one, the first character position is assumed.
If n1 is greater than then length of s1, the last character position is assumed
n2
is the number of characters to delete from string s1, starting at character position n1.
If n2 is less than or equal to 0, 0 characters are assumed.
s2
is the string to insert into s1.
If s2 is omitted or null, the empty string is used.
Returns
The stuffed string or null if any of its mandatory parameters are null.
Examples
Stuff("ABCDE", 3, 2, "XYZ")
returns "ABXYZE".
Stuff("abcde", 4, 1, "wxyz")
returns "abcwxyze".
Stuff("ABCDE", 2, 0, "XYZ")
returns "AXYZBCDE".
Stuff("ABCDE", 2, 3)
returns "AE".
Home Index Bookmark Pages
Pages: Home Index All Pages