LOTUSSCRIPT LANGUAGE
Returns an Array of Strings that are the substrings of the specified String.
Note This function is new with Domino Release 6.
Syntax
Split (expression [, delimiter [, count [, compMethod ]]])
Elements
expression
Split returns an Array of Strings. Each element of this array contains a substring found in expression.
Usage
Split parses expression into substrings consisting of text delimited by the separator character (or the beginning or end of the String), and not containing the separator character. These substrings are placed into an Array in order, and the Array is returned.
Whitespace is not trimmed. Carriage returns are not trimmed and do not cause separations.
If the number of results specified is greater than the number of actual results, the returned Array will equal the number of actual results
If the number of results specified is less than the number of actual results, the last element of the array returned will contain the remainder of the string. For example,
If count is < -1, a RunTime Arg Out of Range error is thrown.
If count is 0, Split returns an array of size 0 with lbound 0 and ubound -1.
Error Handling:
Split will throw a Runtime Type Mismatch if either the expression or the delimiter is not scalar.
Split will throw a Runtime Argument Out of Range error if count is < -1 or optcompare is an invalid value.
Language cross-reference
@Explode function in formula language
Example See Also