![]() |
VST Zahlen sortieren
Hi,
wie kann ich in einem VST am besten Zahlen sortieren? Mit CompareStr, funktioniert es nicht korrekt, allerdings konnte ich kein CompareInt finden. |
AW: VST Zahlen sortieren
Quick&Dirty: CompareStr auf formatierte Zahlen anwenden :mrgreen:
Delphi-Quellcode:
[edit] Eleganter ist es natürlich, mittels CompareNodes das Ergebnis von Zahl1 - Zahl2 (oder andersherum, je nach Richtung) zurückzugeben. [/edit]
CompareStr(Format('%.10d',[Zahl1]), Format('%.10d',[Zahl2]));
|
AW: VST Zahlen sortieren
Danke klappte :)
|
AW: VST Zahlen sortieren
Schön gehts auch via Unit "Math" und CompareValue
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:48 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 by Thomas Breitkreuz