Autor Beitrag
the-kecks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157
Erhaltene Danke: 1

Windows Vista Home Premium 64Bit
Delphi 7 Ent.
BeitragVerfasst: So 21.06.09 20:05 
hi,
ich hab eine ProgressBar programmiert, die eine abarbeitung einer memo darstellen soll:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
for i:=0 to Memo1.lines.count-1 do
begin
  //anweisung
  tempex:= i/Memo1.Lines.Count-1 * 100//100 = Progressbar1.max
  ProgressBar1.Position:=round(tempex);
  ProgressBar1.Update;
end;

Die progressbar bleibt einfach bei 0 stehen :(

mfg
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: So 21.06.09 20:10 
Mach mal Klammern: i/(Memo1.Lines.Count-1) * 100;
the-kecks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 157
Erhaltene Danke: 1

Windows Vista Home Premium 64Bit
Delphi 7 Ent.
BeitragVerfasst: So 21.06.09 20:42 
Das ich da nicht selber drauf gekommen bin -.-
Danke!

mfg