Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

QuickList.FindDuplicateItems

Finds duplicate items in the list.

Component Version macOS Windows Linux Server iOS SDK
List 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "QuickList.FindDuplicateItems"; ListRef { ; ReturnNewList; CaseInsensitive } )   More

Parameters

Parameter Description Example Flags
ListRef The reference to the list returned from QuickList.New function. $List
ReturnNewList Pass 1 to return result as new QuickList.
This new list must be freed later using QuickList.Release function. Pass 0 (Default) to modify the list in the List1 parameter.
0 Optional
CaseInsensitive Whether to perform comparison case insensitive.
By default we do case sensitive operations, which are faster.
Pass 1 for insensitive or 0 for sensitive.
0 Optional

Added in version 14.0.

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 QuickList.RemoveDuplicateItems and see also List.FindDuplicateItems.

Examples

List duplicate IDs:

# IDs from an import
Set Variable [ $list ; Value: MBS( "QuickList.New"; "1001¶1002¶1001¶1003¶1002" ) ]
# pass 1 to get a new QuickList with each duplicate once
Set Variable [ $duplicates ; Value: MBS( "QuickList.FindDuplicateItems"; $list; 1 ) ]
Set Variable [ $text ; Value: MBS( "QuickList.GetList"; $duplicates ) ]
Show Custom Dialog [ "Duplicates" ; $text ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $list ) ]
Set Variable [ $r ; Value: MBS( "QuickList.Release"; $duplicates ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 28th September 2020, last changed 6th November 2026


QuickList.Find - QuickList.FindEquals


MarkDown version: QuickListFindDuplicateItems.md