Changeset 61 for trunk/UContact.pas
- Timestamp:
- Dec 9, 2021, 12:31:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UContact.pas
r60 r61 640 640 var 641 641 I: Integer; 642 C: Integer; 643 begin 644 C := Count; 642 begin 645 643 I := 0; 646 644 while (I < Count) and (Items[I].SysName <> SysName) do Inc(I); … … 653 651 var 654 652 I: Integer; 655 C: Integer; 656 begin 657 C := Count; 653 begin 658 654 I := 0; 659 655 while (I < Count) and not Items[I].Match(SysName, Groups) do Inc(I); … … 951 947 try 952 948 Lines.LoadFromFile(FileName); 949 {$IF FPC_FULLVERSION>=30200} 953 950 if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin 954 951 Lines.LoadFromFile(FileName, TEncoding.Unicode); … … 957 954 end; 958 955 end; 956 {$ENDIF} 959 957 LoadFromStrings(Lines); 960 958 finally … … 1124 1122 Lines := TStringList.Create; 1125 1123 Lines.LoadFromFile(FileName); 1124 {$IF FPC_FULLVERSION>=30200} 1126 1125 if (Length(Lines.Text) > 0) and (Pos(VCardBegin, Lines.Text) = 0) then begin 1127 1126 Lines.LoadFromFile(FileName, TEncoding.Unicode); … … 1130 1129 end; 1131 1130 end; 1131 {$ENDIF} 1132 1132 try 1133 1133 I := 0;
Note:
See TracChangeset
for help on using the changeset viewer.