SplitString

(System Library)

Description: Splits a string into separate array elements using a given delimiter to mark the breaks between elements in the string.
Returns: Array
Usage: Script Only.
Function Groups: String and Buffer
Related to: JoinStrings
Format: System.SplitString(String, Delimiter)
Parameters:  
String
Required. Text containing a list of words separated by a delimiter. Digits are treated as characters and are not converted to numbers in the array.
Delimiter
Required text. The character (or characters) marking the boundary between words that will become array elements.
Comments:

This module is a member of the System Library, and must therefore be prefaced by \System. as shown in the "Format" section.

If your application predates version 11.2, use the backslash notation rather than dot: \System\

Example:

[
  SomeArray         { Array of words                     };
  SomeText          { comma delimited list               };
  
]
Init [ If 1 Main;
  [
    SomeText = "One, Two, Three";
    SomeArray = SplitString(SomeText, ", ");
  ]
]

SomeArray will contain the following: