[twsocket] ftp download question

Davie smatters@smatters.com
Thu, 08 Jun 2000 18:15:04 -0500

I like my method better :) I set a variable to FALSE when I start my
session and then I set it to TRUE when I am done. THen I just check
Because this allows me to encapsulate other items along with the
download. Like
freeing up memory, maybe deleting files, etc... Other general
housekeeping. I
don't know, it's just my preference. Also for plug and play, my
worked wonders thru the years by allowing my to drop in a component
by a
different author and then my code STAYS THE SAME :)


Stephen Williams wrote:

> if ftp1.RequestType in [ftpPutAsync, ftpGetAsync] then
> begin
>   ShowMessage('Oi! Not while yer downloadin'' stuff!');
> end;
> Steve 'Sly' Williams
> IT Development
> Cable & Wireless Optus Outsourcing Services
> swilliams@fm.optus.net.au
> ------------------------------------------------------------
> "And God said: 'Let there be Satan, so people don't blame
on me.
> And let there be lawyers, so people don't blame everything on
> ------------------------------------------------------------
> -----Original Message-----
> From: rwh [mailto:robwh@mediaone.net]
> Sent: Monday, June 05, 2000 17:24
> To: TWS List
> Subject: [twsocket] ftp download question
> Hello what would be the best way to check if a download
> is in progress so a if a user clicks the disconnect button.
> it not only checks for a connection but also if a download
> is in progress.
> code so far.
> procedure TForm1.disconnect1Click(Sender: TObject);
> begin
> if ftp1.Connected = true
> then begin
> {code to check downloading in action}
> if MessageDlg('You are still downloading/uploading at this time
>     mtConfirmation, [mbYes, mbNo], 0) = mrYes then
> begin
> Thanks
> rob
> robwh@mediaone.net
> _______________________________________________
> TWSocket mailing list [http://elists.org/mailman/listinfo/twsocket]
> Visit our website at http://www.rtfm.be/fpiette/indexuk.htm