Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

List.RemoveDuplicateItems

Removes duplicate items in the list.

Component: List
Version: 4.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "List.RemoveDuplicateItems"; List { ; NoReturnEnding; RemoveAll } )

Parameters

Parameter Description Example value
List The list to process. "Hello" ¶ "Hello" ¶ "World"
NoReturnEnding Optional
Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists.
1
RemoveAll Optional
If duplicate is found also remove the first occurrence. Set to 1 to enable or 0 to disable. Default is disabled.
1

Result

Returns new list.

Description

Removes duplicate items in the list.

Examples

Remove duplicates:

MBS( "List.RemoveDuplicateItems"; "Hello¶World¶Hello" )

Remove all duplicates

MBS( "List.RemoveDuplicateItems"; "Hello¶World¶Hello"; 0; 1 )

See also


List.Remove   -   List.RemoveEmptyItems

Feedback: Report problem or ask question.




Links
MBS Realbasic Plugins - Nachhilfe in Andernach