[fpc-pascal] String.Split(const Separators: array of Char; Options: TStringSplitOptions)
Bart
bartjunk64 at gmail.com
Thu Sep 16 22:18:47 CEST 2021
Hi,
I must be missing something obvious.
But given the following definition of the Split() helper function for strings:
Function Split(const Separators: array of Char; Options:
TStringSplitOptions): TStringArray; overload; (fpc 3.2.2)
Why does this not compile:
var
SA: TStringArray;
...
SA := S.Split([#0..#32],TStringSplitOptions.ExcludeEmpty);
test.pas(236,59) Error: Incompatible type for arg no. 2: Got
"TStringSplitOptions", expected "Char".
I feel I must be blind...
--
Bart
More information about the fpc-pascal
mailing list