Xbasic
*REMOVE_DUPLICATES Function
Syntax
New_List as C = *REMOVE_DUPLICATES(C list_on_values[,C delimiter])
Arguments
- New_List
A list with duplicates removed.
- list_on_values
The original list.
- delimiter
Optional. Default = CR-LF. The character expression that separates entries in the list.
Description
Remove duplicate sequential entries from the list.
Discussion
The *REMOVE_DUPLICATES() function removes duplicate entries from a list. The list must be sorted in ascending order first. Limitation: The Old_List argument is case sensitive.
Example
dim list as C list = <<%str% one two three four Two one %str% list = sortsubstr(list, crlf() ) ? *remove_duplicates(list) = four one three Two two
See Also