Sign in Join
FPDoc Onlineexperiment

TStrings.Slice procedure

Member of TStringspublicIn unit Classes

Return a subrange of strings starting at a given index.

Declaration

pascal
procedure Slice(fromIndex: Integer; aList: TStrings); overload
procedure Slice(fromIndex: Integer; toIndex: Integer; aList: TStrings)
 ; overload
function Slice(fromIndex: Integer): TStrings; overload
function Slice(fromIndex: Integer; toIndex: Integer): TStrings
 ; overload

Description

Slice adds to aList the strings in the current list, starting with the string at index FromIndex. If aList is not specified, a TStringList instance is created and used. The caller must free the new instance.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.