Changeset 34 for trunk/UCore.pas
- Timestamp:
- Nov 25, 2021, 1:51:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r31 r34 364 364 Result.Loaded := TempFile.Contacts.Count; 365 365 for I := 0 to TempFile.Contacts.Count - 1 do begin 366 NewContact := TContactsFile(DataFile).Contacts.Search(T Contact(TempFile.Contacts[I]).Fields[cfFullName]);366 NewContact := TContactsFile(DataFile).Contacts.Search(TempFile.Contacts[I].Fields[cfFullName]); 367 367 if not Assigned(NewContact) then begin 368 368 NewContact := TContact.Create; 369 369 NewContact.Parent := TContactsFile(DataFile); 370 NewContact.Assign(T Contact(TempFile.Contacts[I]));370 NewContact.Assign(TempFile.Contacts[I]); 371 371 TContactsFile(DataFile).Contacts.Add(NewContact); 372 372 Inc(Result.New); 373 373 end else begin 374 if NewContact.UpdateFrom(T Contact(TempFile.Contacts[I])) then374 if NewContact.UpdateFrom(TempFile.Contacts[I]) then 375 375 Inc(Result.Updated); 376 376 end; … … 402 402 else FormContacts.Contacts := nil; 403 403 FormContacts.ReloadList; 404 FormContacts.UpdateInterface; 404 405 end; 405 406 end;
Note:
See TracChangeset
for help on using the changeset viewer.