![]() |
Re: Zwei Stringlisten miteinander vergleichen. Wie am besten
Noch' n Gedicht :mrgreen:
Delphi-Quellcode:
function SameContent(const FirstList, SecondList: TStrings): Boolean;
var i, iIndex: integer; tempList: TStringList; begin Result := FirstList.Count = SecondList.Count; if Result then begin tempList := TStringlist.Create; try tempList.Assign(SecondList); i := 0; while Result and (i < FirstList.Count) do begin iIndex := tempList.IndexOf(FirstList[i]); if iIndex < 0 then Result := false else tempList.Delete(iIndex); inc(i); end; finally tempList.Free; end; end; end; |
Re: Zwei Stringlisten miteinander vergleichen. Wie am besten
Vielen dank.
Ihr habt mir wie immer super geholfen. Gruss Holger |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:00 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz