Xbasic
WORD_UNIQUE Function
Syntax
Output_String as C = Word_Unique(C Source[,C Delimiter])
Arguments
- SourceCharacter
A string containing a series of delimited words or values.
- DelimiterCharacter
Default = CRLF(). The delimiter that separates the words or values.
Returns
- Output_StringCharacter
Returns a list of unique words (case-insensitive comparison) in a delimited list.
Description
Remove duplicate words from a list.
Discussion
The WORD_UNIQUE() function returns a list of unique words in a delimited string.
s = "a" + crlf() + "ab" + crlf() + "abc" + crlf() + "ab" + crlf() + "a" ? s = a ab abc ab a ? word_unique(s, crlf()) = a ab abc
For a case-insensitive comparison, use the WORD_UNIQUE_C() function.
See Also