Delphi-PRAXiS
Seite 2 von 2     12   

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 SynEdit: Alle Highlighter ändern (https://www.delphipraxis.net/129354-synedit-alle-highlighter-aendern.html)

Neutral General 18. Feb 2009 00:09

Re: SynEdit: Alle Highlighter ändern
 
Hi Satty67,

Delphi-Quellcode:
for i := ComponentCount-1 downto 0 do
ist schon richtig. Wenn bei einer downto-Schleife die erste Zahl kleiner ist als die zweite, dann wird die Schleife nicht durchlaufen. Das gleiche gilt für "normale" for-Schleifen wenn die erste Zahl größer ist als die 2.

Satty67 18. Feb 2009 00:11

Re: SynEdit: Alle Highlighter ändern
 
Gut, nachdem Du es geschrieben hast sehe ich auch meinen Denkfehler (ComponentCount wird ja -1).

naja, ist schon so spät...


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:16 Uhr.
Seite 2 von 2     12   

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