Tokenize

Declaration: Tokenize (Instring: string; const Separator: string; var Tokens: TStrArray): integer;
The function Tokenize splits the string Instring into substrings which are separated by the string Separator. The substrings are stored in the dynamic array Tokens. The function returns the number of tokens found.

 

Hint: Please note, that the number of tokens is limited to 1000. If a string contains more than 1000 tokens, the rest of the tokens are not resolved and returned as the last token (i.e. Tokens[999]).


Last Update: 2020-Apr-18