JCL Help:AddStringToStrings@string@TStrings@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Add a string to TStrings instance if conditions met.


Pascal

 function AddStringToStrings(const S: string; Strings: TStrings; const Unique: Boolean): Boolean;


Parameters

Parameters Description
const S: string String to be added.
Strings: TStrings TStrings object to which the string specified by S should be added.
const Unique: Boolean Determines whether the the uniqueness check should be performed before adding the string.


Return Value

The function returns True if the string was added, False otherwise.


Description

Add a string to an object of TStrings. If a string already exists in the list and there is a uniqueness requirement in place, the string is not added.


About

Unit

JclStrings


Donator

Jean-Fabien Connault


Platforms

Windows NT/2000/Vista: Requires Windows NT 3.1 or later. Windows 95/98: Requires Windows 95 or later.


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