Autor Beitrag
Crowbar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 180

WinXP, SP2
D6 Enterprise
BeitragVerfasst: So 31.07.05 16:17 
Hi,
ich benutze eine ComboBox mit z.B. folgenden Strings:
7,0
0,0
18,0
16,0
Nun möchte ich, dass der Inhalt meiner ComboBox sortiert wird. Dies mache ich mit ComboBox.Sorted:=true.
Die Sortierung sieht so aus:
0,0
16,0
18,0
7,0
Diese Sortierung ist ja auch logisch, da der String 7,0 im Prinzip größer ist wie z.B. 16,0.
Muss ich nun selbst eine Sortierroutine schreiben, um das eigentlich "richtige" Ergebnis zu kommen?
Mein Ziel:
0,0
7,0
16,0
18,0

Crowbar
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: So 31.07.05 16:22 
user profile iconCrowbar hat folgendes geschrieben:
Muss ich nun selbst eine Sortierroutine schreiben, um das eigentlich "richtige" Ergebnis zu kommen?

Ja.

_________________
Ciao, Sprint.
Crowbar Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 180

WinXP, SP2
D6 Enterprise
BeitragVerfasst: So 31.07.05 16:25 
Na dann mache ich mich 'mal an die Arbeit. :lol:

Cu
Crowbar
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 02.08.05 11:00 
Wäre schön wenn du deine Lösung hier posten könntest damit die anderen (und ich :twisted:) dann auch davon provitieren können. ;-) Danke!

Lg Martin
firus1983
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 170

Win98,XP,
D6 Entrpr
BeitragVerfasst: Di 02.08.05 12:01 
ggf. helfen die Worte "Quicksort" oder "BubbleSort" weiter...

Dr. Google hat da auch schon mal drüber referiert.

_________________
Veni Vidi Codi !
Ich kam, sah, und programmierte !