Welcome! Log In Create A New Profile

Advanced

Progress bar

Posted by emirhan 
emirhan
Progress bar
February 06, 2009 04:00PM
Hi all,

in my ftp backup program I need to display a progress bar during the file transfering to the FTP, does anybody has example about progress bar? Or how can I do that according to total_size/transfered_size? help documentation does not understandable.Thanks
Stefan Bentvelsen
Re: Progress bar
February 10, 2009 02:02PM
Hi emirhan,

In WD10:

I use the following FTPSend() command:

bFtpRes=FTPSend(nIdConnection,sDrive+sPath+sZipNaam, Replace(CompleteDir(sBUMap)+"adm\"+sZipNaam,"\","/"),"SendBackupFile")

with the following code in a local procedure SendBackupFile():

PROCEDURE SendBackupFile(pTotal,pTransferred)

Gauge(pTransferred,pTotal,"Uploading reservekopie, "+Round(pTransferred/pTotal*100)+"% voltooid ...")
MultitaskRedraw()
RESULT True
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: