![]() |
AW: Anzahl der Elemente einer Aufzählung
Zitat:
Also nicht mehr
Delphi-Quellcode:
sondern
StringList.Count - 1
Delphi-Quellcode:
.
Pred(StringList.Count)
Das gehört für nich fix zusammen (z. B. für die Angabe des höchsten Zählwerts bei Schleifen
Delphi-Quellcode:
).
for i := 0 to Pred(StringList.Count)
Dann schaut auch ein
Delphi-Quellcode:
nicht mehr dämlich aus.
Pred(StringList.Count) + 1
Sorry, etwas offtopic |
Alle Zeitangaben in WEZ +1. Es ist jetzt 23:17 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