Text.Split([Text,...]) Method

Version: Available or changed with runtime version 1.0.

Splits a string into a maximum number of substrings based on a collection of separators.

Syntax

Result :=   Text.Split([Separators: Text,...])

Note

This method can be invoked without specifying the data type name.

Parameters

Text
 Type: Text
An instance of the Text data type.

[Optional] Separators
 Type: Text
A collection of separators that delimit the substrings in this string.

Return Value

Result
 Type: List of [Text]
The collection of substrings from the original string based on the collection of separators.

Remarks

If no separators are specified, the text is split at white-space characters.

Text Data Type
Get Started with AL
Developing Extensions