Sign in Join
FPDoc Onlineexperiment

StringListToString function

In unit LazStringUtils

Converts the content in a TStrings instance to a string value.

Declaration

pascal
function StringListToString(List: TStrings; FromIndex: Integer; 
 ToIndex: Integer; 
 IgnoreEmptyLines: Boolean=False): string

Arguments

List

TStrings instance examined in the method.

FromIndex

First line included in the string value.

ToIndex

Last line included in the string value.

IgnoreEmptyLines

Indicates if empty lines are excluded from the result.

Function result

String representing the contents of the TStrings instance.

Description

Adds a LF (#10) character to the end of text lines in the string list. Quotes each string value which ends with a LF character using surrounding Quote (') characters.

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