Delphi-PRAXiS
Seite 3 von 3     123   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi StringList (https://www.delphipraxis.net/33827-stringlist.html)

Sprint 13. Nov 2004 14:11

Re: StringList
 
Zitat:

Zitat von blackyhb
ich versuche vergeblich in einer StringListe die Reihenfolge der
Einträge umzukehren

Delphi-Quellcode:
procedure Reverse(const AStringList: TStringList);
var
  I: Integer;
begin

  I := 0;
  while I < (AStringList.Count div 2) do
  begin
    AStringList.Exchange(I, AStringList.Count - I - 1);
    Inc(I);
  end;

end;

Nicodius 13. Nov 2004 14:13

Re: StringList
 
das geht ohne probleme


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:46 Uhr.
Seite 3 von 3     123   

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 by Thomas Breitkreuz