Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make an indicator of uploading process?

Status
Not open for further replies.

Alexsey

Programmer
Aug 8, 2002
9
UA
Hello to everybody!
Please, help with your knowledges, how can i link progressbar and idFTP (Delphi 7) to make an indicator of uploading process?
Thanks before...

PS: Sorry for my poor English...
 
Hi,

Try this:

- Drop idAniFrees component from Indy Misc page
- Drop StatusBar and add a panel to it
- Declare a global variable : FSize: Integer;
- Befor you download a file put this line:
FSize:= FTP.Size(.. PutYour file name here...);
- in idFTP component, at OnWork event write:
StatusBar1.Panels[0].Text:= IntToStr(AWorkCount) + ' out of ' + IntToStr(FSize);

Kind Regards, Paul Benn

**** Never Giveup, keep trying, the answer is out there!!! ****
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top