WORD_UNIQUE_C Function
Syntax
Arguments
- Source
A string containing a series of delimited words or values.
- Delimiter
Default = CRLF(). The delimiter that separates the words or values.
Returns
- Output_StringCharacter
Returns a list of unique words (case-sensitive) in a delimited string.
Description
Remove duplicate words from a list doing a case-sensitive comparison.
Discussion
The WORD_UNIQUE_C() function generates a list of unique words in a delimited string using a case-sensitive comparison. This means two words spelled the same but with difference case will be considered individually unique. For example:
dim txt as c txt = comma_to_clf("NO,no,NO") ? word_unique_c(txt) = NO no
The result of performing a WORD_UNIQUE_C() search on the character list "NO,no,NO" results in a list of two words: "NO" and "no". While both words are spelled the same, they use different cases and are therefore considered to be unique.
For a case-insensitive comparison, use the WORD_UNIQUE() function.
See Also