[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

SplitString

Creates and populates a TStringList with lines determined using the specified delimiter character.

Declaration

Source position: lazstringutils.pas line 69

function SplitString(

  const s: string;

  Delimiter: Char

):TStrings;

procedure SplitString(

  const s: string;

  Delimiter: Char;

  AddTo: TStrings;

  ClearList: Boolean = True

);

Arguments

s

  

String with the values examined and loaded into the string list.

Delimiter

  

Character used to delimit lines of text in S.

Function result

TStrings instance created and populated in the routine.

Arguments

s

  

String with the values examined and loaded into the string list.

Delimiter

  

Character used to delimit lines of text in S.

AddTo

  

TStrings instance where lines of text are stored.

ClearList

  

True to clear the string list; False to append lines to existing values.


Version 4.0 Generated 2025-05-03 Home