Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Di 17.06.03 13:38 
Hallo,
ich wollte nur mal wissen, wie man einen einfachen Internetdownload (Indy-Komponente wäre nicht schlecht) mit einer Progressbar verknüpfen kann (Progressbar1.Position:= Fortschritt des Downloads in %)...

_________________
...To err is human, but to really foul things up requires a computer.
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Di 17.06.03 13:44 
Ich weiß jetzt nich was dein Problem ist, aber den Prozentanteil von a an b bekommst du so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
function Prozent(a,b: Float):Float;
begin
  result :=  (a/b)*100;
end;

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Di 17.06.03 13:55 
Also ,ich will einen Download (möglichst mit einer Indy-Komponente)
vornehmen und die Progressbar soll immer anzeigen wieviel Prozent schon runter geladen wurden.
Klaro?

_________________
...To err is human, but to really foul things up requires a computer.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 17.06.03 14:56 
such doch mal hier im forum nach den begriffen download und fortschritt*
sowas hatten wir schonmal mit guten codebeispielen

_________________
In the beginning was the word.
And the word was content-type: text/plain.