Autor Beitrag
Joergie
Hält's aus hier
Beiträge: 2

Win XP
Delphi 7 Pro
BeitragVerfasst: Mi 08.09.04 11:07 
Hallo,
ich möchte in einer RadioGroup die Items - Integer - Sortieren.

(RadioGroup.Items as TStringList).Sort;

soriert sie mir nur als Strings....

~joerg

_________________
"If you really want something in this life, you have to work for it. Now, quiet! They're about to announce the lottery numbers..." - Homer Simpson
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 08.09.04 11:12 
Hallo Joerg,

da wirst du entweder selber "von Hand" sortieren müssen, was ja auch schon bei einer Radiogroup mit einem relativ schwachen Algo wie BubbleSort erledigt werden kann, oder du füllst die Items vorne mit Nullen auf (aus '1' wird also '0001', aus '142' wird '0142') und sortierst dann.

Cu,
Udontknow
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 08.09.04 11:16 
Warum kommt mir das jetzt so bekannt vor? :roll:
Udontknow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2596

Win7
D2006 WIN32, .NET (C#)
BeitragVerfasst: Mi 08.09.04 11:21 
Na super, das liebe ich ja. :?

Aber wieso komme ich eigentlich auf Nullen? Natürlich besser mit Space auffüllen.

Cu,
Udontknow
Joergie Threadstarter
Hält's aus hier
Beiträge: 2

Win XP
Delphi 7 Pro
BeitragVerfasst: Mi 08.09.04 12:36 
Luckie hat folgendes geschrieben:
Warum kommt mir das jetzt so bekannt vor? :roll:


Sorry, ich wußte nicht dass es ein Problem ist!
Wenn ich jmd. verärgert habe - Entschuldigung. Ich werde nur noch in einem Forum ne Frage stellen!

~joerg

_________________
"If you really want something in this life, you have to work for it. Now, quiet! They're about to announce the lottery numbers..." - Homer Simpson