Changeset 111 for trunk/UAcronym.pas
- Timestamp:
- Nov 1, 2016, 9:06:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UAcronym.pas
r101 r111 7 7 uses 8 8 Classes, SysUtils, Contnrs, XMLRead, XMLWrite, DOM, UXMLUtils, 9 SpecializedList, fphttpclient2, Dialogs, odbcconn, sqldb ;9 SpecializedList, fphttpclient2, Dialogs, odbcconn, sqldb, LazUTF8; 10 10 11 11 type … … 329 329 NewAcronym := TAcronymEntry.Create; 330 330 while not SQLQuery1.EOF do begin 331 NewAcronym.Name := Trim( SQLQuery1.FieldByName('Acronym').AsString);332 NewAcronym.Meaning := Trim( SQLQuery1.FieldByName('Meaning').AsString);331 NewAcronym.Name := Trim(WinCPToUTF8(SQLQuery1.FieldByName('Acronym').AsString)); 332 NewAcronym.Meaning := Trim(WinCPToUTF8(SQLQuery1.FieldByName('Meaning').AsString)); 333 333 if (NewAcronym.Name <> '') and (NewAcronym.Meaning <> '') then begin 334 334 AddedAcronym := Sources.AcronymDb.AddAcronym(NewAcronym.Name, NewAcronym.Meaning); … … 336 336 if AddedAcronym.Sources.IndexOf(Self) = -1 then 337 337 AddedAcronym.Sources.Add(Self); 338 end;338 end; 339 339 SQLQuery1.Next; 340 340 Inc(ItemCount);
Note:
See TracChangeset
for help on using the changeset viewer.