TStringList.Add

function Add(S: string): Integer S: string to be added Result: Strings[]  index with newly added string

Description
This function will add S to the list. Note that Duplicates affects the function. If the list is sorted and the string S is already present in the list and Duplicates is dupError then an error occurs. If Duplicates is set to dupIgnore then the return value is underfined. If the list is sorted, new strings will not necessarily be added to the end of the list, rather they will be inserted at their alphabetical position.