JCL Help:TWideStringList.Add

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Adds a WideString to the end of the list.


Pascal

 public function Add(const S: WideString): Integer; override;


Parameters

Parameters Description
const S: WideString The WideString to add at the end of the list.


Return Value

Zero based index of the newly inserted WideString.


Description

Adds a WideString to the list and returns the index of the new WideString. If the list is unsorted the string is appended to the list. If the list is sorted and the specified string does not exist in the list yet, the string is inserted at the correct position. If the string does exist the request is either ignored or an exception is raised depending on the value of the Duplicates property.


About

Donator

Mike Lischke


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