Autor Beitrag
Hack Gott
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: So 21.05.06 19:49 
Hmm, ja ich weiß, so was sollte man wissen, aber ich hab bis jetzt immer mit Timern gearbeitet (keine sehr gut Lösung, ich weiß). Also, ich habe eine Listbox, jetzt soll er von allen Einträgen eine gleichnamige Datei öffnen, also:

ausblenden Delphi-Quelltext
1:
2:
3:
listbox5.items.loadfromfile(listbox1.items.strings[0]);
listbox5.items.strings[0] := 'geändert';
listbox5.items.savetofile(listbox1.items.strings[0]);


normalerweise hätte ich des so in nen timer gesteckt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
if listbox1.items.count = 0 then begin
timer1.enabled := false;
exit;
end else begin
listbox5.items.loadfromfile(listbox1.items.strings[0]);
listbox5.items.strings[0] := 'geändert';
listbox5.items.savetofile(listbox1.items.strings[0]);
listbox1.items.delete(0);
end;


so, also und jetzt trau ich mich mal auf neues gebiet und frag euch, wie geht das mit einer schleife?
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: So 21.05.06 20:01 
grüße,

Schleifen

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 21.05.06 20:03 
Hack Gott Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 409

Windows Vista
Delphi 2005 Personal, Delphi 7
BeitragVerfasst: So 21.05.06 20:05 
Danke!