Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

help in idftp delphi

Posted on 2011-03-11
3
Medium Priority
?
702 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 400 total points
ID: 35107324
0
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 1600 total points
ID: 35174143
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
ID: 35361726
thanks, friend
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

972 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