Using the generic TList
collection: Is there some function that detects duplicate records or do I need to do a search on all records and check single field if duplicated or not?
The generic TList has a Contains method that can be used to detect duplicates. But you have to call this yourself as there is no Duplicates property as there is for TStringList.
If your data can be compared with a binary compare then there is nothing more to do. Otherwise you need to supply a custom comparer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With