Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5    Statistic    FMM    Blog  

List.FindDuplicateItems

Finds duplicate items in the list.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
List 10.5 Yes Yes Yes Yes Yes
MBS( "List.FindDuplicateItems"; List { ; NoReturnEnding } )   More

Parameters

Parameter Description Example Flags
List The list to process. "Hello" ¶ "Hello" ¶ "World"
NoReturnEnding 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 Optional

Result

Returns list or error.

Description

Finds duplicate items in the list.
Returns list with all duplicate items, but only counts each one once.
Similar to List.RemoveDuplicateItems and see also QuickList.FindDuplicateItems.

Examples

Find duplicates

MBS( "List.FindDuplicateItems"; "1¶2¶3¶4¶1¶7¶7¶8¶1")

Example result:
1
7

See also

Blog Entries

Release notes

  • Version 10.5
    • Added List.FindDuplicateItems and QuickList.FindDuplicateItems functions.

Created 28th September 2020, last changed 28th September 2020


List.Deserialize   -   List.FindEquals

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins