Codeunit 707 RegEx Split Wrapper
Source AL, 57 lines
src/Layers/W1/BaseApp/System/Text/RegExSplitWrapper.Codeunit.allines 5 to 20 of 57, Copyright (c) Microsoft Corporation. MIT
codeunit 707 "RegEx Split Wrapper"{ trigger OnRun() begin end; var SplitArray: DotNet Array; ArrayIsEmptyErr: Label 'No split string has been supplied.'; IndexOutOfBoundsErr: Label 'Index out of bounds.', Comment = '%1 = integer'; procedure Split(Text: Text; Separator: Text) begin if not TrySplit(Text, Separator) then Error(GetLastErrorText);