Solved

help in idftp delphi

Posted on 2011-03-11
3
676 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 24

Assisted Solution

by:jimyX
jimyX earned 100 total points
ID: 35107324
0
 
LVL 32

Accepted Solution

by:
Ephraim Wangoya earned 400 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.

726 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