Autor Beitrag
der_ich
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 20



BeitragVerfasst: Di 31.01.06 20:13 
hi

das ist vielleicht ne dumme frage
ich schaffe es nicht den inhalt einer liste in eine andere liste zu kopieren und bei jeder zeilenübergabe noch etwas dahinterzuschreiben

bis jetzt hab ich diese versionen

ausblenden Delphi-Quelltext
1:
2:
for n:=0 to checklistbox.Items.count-1 do
    checklistbox2.items.strings[n]:=(checklistbox.Items.strings[n]+' abc');


doch da hängt sich der rechner auf

ausblenden Delphi-Quelltext
1:
checklistbox2.items.text:=(checklistbox.Items.text+' abc');					


doch hier kopiert er erst die ganze liste und fügt dann als letzten eintrag noch 'abc' an

danke schonmal

Moderiert von user profile iconUGrohne: Code- durch Delphi-Tags ersetzt
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 31.01.06 20:39 
ausblenden Delphi-Quelltext
1:
2:
for n:=0 to checklistbox.Items.count-1 do
    checklistbox2.items.Add(checklistbox.Items.strings[n]+' abc');

sollte es eigentlich tun.