🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1011

Re: Need Assistance with the TIdFTP Component in BCB 2006...

#1011
From: Bob Gonder
Date: Mon, 25 Jun 2007 15:36
18 lines
1945 bytes
Carl Danley wrote:

>So, I am developing an application that allows users to upload files to a 
>website using the TIdFTP component in the Indy 9 Client Component 
>Category... I was wondering if anyone knew how to display the current 
>transfer process on a Label... Example: "9287 bytes of 9847224 bytes 
>uploaded"... I knew how to implement this in Borland C++ Builder 4.0... I 
>would use coding like:
>
>Label1->Caption = ftp->BytesTransferred+" bytes of "+ftp->TotalBytes+" bytes 
>uploaded";
>
>I dont know how to display the status with the new component in Borland C++ 
>Builder 2006... I need help... please! 

Before uploading, you get the file size from the operating system.
In the OnWork() member, you add each AWorkCount to your running total,
and use Synchronize() to update the label.
Technical Details
Message-ID: <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!194.158.97.152.MISMATCH!feedme-big.clubint.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <467f387d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,43e624bf4e799e37
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Need Assistance with the TIdFTP Component in BCB 2006...
Date: Mon, 25 Jun 2007 08:36:10 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <9vnv73dl97vfkq2qqs8spvb1ermjvjkgsu@4ax.com>
References: <467f387d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.84.229
X-Trace: newsgroups.borland.com 1182785769 69.69.84.229 (25 Jun 2007 08:36:09 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!194.158.97.152.MISMATCH!feedme-big.clubint.net!club-internet.fr!feedme-small.clubint.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail