Autor Beitrag
Thunder00
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52



BeitragVerfasst: Fr 29.08.03 16:56 
Hallo,

Ich hab ein Proggi. Da isn TListbox wo Pfade zu Bildern drin sind.

Wie krieg ich die jetzt inne INI..
Ich kenn mich unter Delphi mit INIs aus.
ausblenden Quelltext
1:
Ini.WriteString('Bilder', 'Bild' + Nummer, Listbox1.Items[Nummer];					


So jetzt muss das inne Schleife und Nummer immer eins hochgesetzt werden bis Listbox1 am Ende ist.

Wie??

Gruß,
Andreas

_________________
If you can't make it good, at least make it looks good. (Bill Gates)
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Fr 29.08.03 17:14 
Hi!

(1) so, wie es da steht, kann es nicht funktionieren. Im zweiten Parameter musst Du "nummer" zumindest in einen String umwandeln.
(2) das, was Du brauchst, ist eine Schleife:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for nummer:=0 TO ListBox1.Items.Count-1 Do
begin
  //mach was mit Nummer
end;


MfG
Peter

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Fr 29.08.03 17:18 
Du bist da auf dem richtigen Weg.

Die Einträge in der ListBox bekommst du mit ListBox1.Count.

[Edit]Da war jemand schneller[/Edit]

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
Thunder00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52



BeitragVerfasst: Fr 29.08.03 21:28 
sorry. mein fehler.

also
ausblenden Quelltext
1:
2:
for nummer:=0 TO ListBox1.Items.Count-1 Do 
Ini.WriteString('Bilder', 'Bild' + IntToStr(Nummer), Listbox1.Items[Nummer]);

oder??

_________________
If you can't make it good, at least make it looks good. (Bill Gates)
Thunder00 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 52



BeitragVerfasst: Fr 29.08.03 21:31 
es geht! danke.

_________________
If you can't make it good, at least make it looks good. (Bill Gates)