Solved

help in idftp delphi

Posted on 2011-03-11
3
668 Views
Last Modified: 2012-05-11
Hello experts.Please help in one component.
I have idhttp in a form.
And when i press a button idftp start uploading a file to server.

Please help, how can i make that in uploading process shows a progressbar and ftp uploading status.
0
Comment
Question by:helyonprime96
3 Comments
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 100 total points
Comment Utility
0
 
LVL 32

Accepted Solution

by:
ewangoya earned 400 total points
Comment Utility
You can use the following events or download a complete example from
http://www.indyproject.org/sockets/demos/index.en.aspx
procedure TfrmMain.FTPWorkBegin(Sender: TObject; AWorkMode: TWorkMode;
  const AWorkCountMax: Integer);
begin
  pbProgress.Max := AWorkCountMax;
  pbProgress.Position := 0;
  pbProgress.Visible := true;
end;

procedure TfrmMain.FTPWork(Sender: TObject; AWorkMode: TWorkMode;
  const AWorkCount: Integer);
begin
  pbProgress.Position := AWorkCount;
end;

procedure TfrmMain.FTPWorkEnd(Sender: TObject; AWorkMode: TWorkMode);
begin
  pbProgress.Visible := false;
end;

Open in new window

0
 

Author Closing Comment

by:helyonprime96
Comment Utility
thanks, friend
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now