Split
Mon 01 January 2018Syntax
Split(string, separator)
Description
Use the Split function to convert a string into an array of strings by looking for the string separator in the given string.
Note: Split does not split an array.
If separator is omitted, a blank is used.
If separator is a null string (""), the string is split into single characters.
If separator is the last character in the string, you will not get an empty string. For example, in the following code, &array only has a value of 2:
&test = "value1:value2:";
&array = Split(&test, ":");
Parameters
Field or Control |
Definition |
---|---|
string |
The string to be converted into an array |
separator |
The character used for dividing the string. |
Returns
Returns a reference to the array.