Description: Parses comma-delimited text into a TStringList, appends the item when it is not already present, then returns TStringList.Text.
Calling convention: CIP_AddUniqueItemToStringList("UniqueItem": String, "StringList": String)
Parameters:
UniqueItem: item to add uniquely.
StringList: comma-delimited input. Because TStringList.Text is returned, the current output is line-separated rather than comma-separated.
Returns: Updated line-separated text. If either argument is NULL, the original StringList argument is returned.
Availability: Default.
Example:
ListText := CIP_AddUniqueItemToStringList("C", "A,B"); // A, B and C on separate lines