Autor Beitrag
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Mo 26.09.05 17:25 
Hi @ all!
Hab mal ne Frage:
Gibts ne Möglichkeit den Inhalt( die Items) von ner ListBox zu verdoppeln?
Also praktisch nach folgendem Schema:
ausblenden Delphi-Quelltext
1:
Listbox1.Items := ListBox1.Items + Listbox1.Items;					



Muss euch alle mal ganz doll loben. is echt crass wie schnell man hier manchmal die Antworten auf Fragen bekommt. :D

Schon mal danke! 8)
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 26.09.05 17:42 
ausblenden Delphi-Quelltext
1:
listbox1.Items.text := listbox1.Items.text+listbox1.Items.text;					

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Raffo
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 300



BeitragVerfasst: Mo 26.09.05 17:43 
Nicht ganz verstanden, meinst Du:

1.) Die eine Zeile der Listbox mit sich selbst addieren:

ausblenden Delphi-Quelltext
1:
Listbox1.items[0]:=Listbox1.items[0]+Listbox1.items[0];					

oder

2.) den Inhalt der Listbox1 nach Listbox2 zu transferieren?:

ausblenden Delphi-Quelltext
1:
Listbox2.items:=Listbox1.items;					



Moderiert von user profile iconKlabautermann: Delphi-Tags hinzugefügt.
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Mo 26.09.05 17:45 
ausblenden Delphi-Quelltext
1:
ListBox1.Items.AddStrings(ListBox1.Items);					

_________________
Ciao, Sprint.
Fabian E. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Mo 26.09.05 17:49 
Hi!
ne so meine ich das nich.
Stell dir vor du hast ne Listbox mit x einträgen.
Jetzt will ich aber aus diesen x Einträgen 2*x Eintäge machen.
Also die Komplette Listbox kopieren un dann wieder an die eigentliche Listbox anhängen. Also im prinzip sähe das dann so aus:
Vor dem Kopieren:
Listbox1 :
1
2
3

Danach:
1
2
3
1
2
3
Fabian E. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: Mo 26.09.05 17:51 
Oh sorry! :oops:
die antworten wurden irgendwie nich angezeigt.
danke sollte so klappen.

Fabian