Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > String Objects > split() MethodThis method splits a string into an array of strings based on the delimiters in the parameter substring. SyntaxReturnsAn array of strings, creating by splitting stringVar into substrings, each of which begins at an instance of the delimiter character. UsageThis method splits a string into an array of substrings such that each substring begins at an instance of delimiter. The delimiter is not included in any of the strings. If delimiter is omitted or is an empty string ( This method is the inverse of arrayVar.join(). ExampleThe following example splits a typical Siebel command line into its elements by creating a separate array element at each space character. Note that the string has to be modified with escape characters to be comprehensible to Siebel eScript. Note also that the cmdLine variable must appear on a single line, which space does not permit in this volume. The result appears in the illustration following the example. function Button3_Click () Running this code produces the following result. The following items appear in the array: See Also |
Siebel eScript Language Reference |