Changeset 133 for trunk/Packages/VCard/UVCard.pas
- Timestamp:
- Apr 10, 2022, 1:39:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/VCard/UVCard.pas
r132 r133 209 209 procedure Merge(Contact: TContact; FieldIndex: TContactFieldIndex); 210 210 function ToString: ansistring; override; 211 procedure RemoveExactDuplicates;211 function RemoveExactDuplicates: Integer; 212 212 procedure Sort; 213 213 end; … … 1242 1242 end; 1243 1243 1244 procedure TContacts.RemoveExactDuplicates;1244 function TContacts.RemoveExactDuplicates: Integer; 1245 1245 var 1246 1246 I: Integer; 1247 1247 J: Integer; 1248 1248 begin 1249 Result := 0; 1249 1250 for I := 0 to Count - 1 do 1250 1251 for J := Count - 1 downto I + 1 do 1251 1252 if Items[I].CompareTo(Items[J]) then begin 1252 1253 Remove(Items[J]); 1254 Inc(Result); 1253 1255 end; 1254 1256 end;
Note:
See TracChangeset
for help on using the changeset viewer.