JCL Help:StringsToStr@TJclAnsiStrings@AnsiString@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a stringlist to a single string.


Pascal

 function StringsToStr(const List: TStrings; const Sep: string; const AllowEmptyString: Boolean = True): string; overload;
function StringsToStr(const List: TStrings; const Sep: string; const NumberOfItems: SizeInt; const AllowEmptyString: Boolean = True): string; overload;
function StringsToStr(const List: TJclAnsiStrings; const Sep: AnsiString; const AllowEmptyString: Boolean = True): AnsiString;


Parameters

Parameters Description
const List: TStrings Stringlist which contains the strings to concatenate.
const Sep: string String to separate the individual strings with.


Description

StringsToStr concatenates the items in List, separating them with the specified separator string and returns the resulting string. The last element is not terminated with the separator (its a separator not a terminator after all).


See Also

StrToStrings


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page