(SST) ShlWAPIFunctionInfo Version 1.0

Developer Reference
TSSTAdvancedComboBox.AddDistinct Method
Adds a string to a TComboBox's Items list or determines its index if it's already in the list.
Public (i.e. this method can be referenced from any code, including that in other units, with access to the TSSTAdvancedComboBox object of interest).
Function AddDistinct(CONST astr : STRING) : INTEGER;  
astr [in] The string to be added to the TComboBox's Items list.
Return Values
Returns a signed (32-bit) integer value that is either the 0-based index of the newly added or that of the existing astr string in the combobox's Items list.
If the function adds the string to the combobox's Items list, the return value is the 0-based index of the newly added string. If astr is already in the list, at the time of the call, the return value is the index of that string.
The comparison in determining if the string is already in the list is not case-sensitive (i.e. upper and lower case characters are considered identical).
Unit (Declared and implemented in) SSTNewUnit.pas
Library SSTNewUnit.dcu/SSTNewUnit.obj
Unicode Implemented as ANSI version only.
See Also
TSSTAdvancedComboBox, ClearEditText, ClearUndo, CopyEditText, CutEditText, PasteEditText, RemoveSelection, RetCanUndo, CanUndo,
Windows APIs:

Document/Contents version 1.00
Page/URI last updated on April 30, 2022
Copyright © Stoelzel Software Technologie (SST) 2010 - 2017
Suggestions and comments mail to: