|
 |
activex_data_objects thread: Progress bar
Message #1 by Joel Hollender <jhollender@V...> on Tue, 26 Jun 2001 15:08:04 -0400
|
|
To all:
could anyone please give me the basic syntax how to use the progress bar
control in V.B. I am transferring a lot of files from my local server to a
FTP site and I would like to show the user where he is up to and the amount
of files he transferred so far
Thank you in advanced
Message #2 by "Zadoyen, Eva" <EZadoyen@s...> on Thu, 28 Jun 2001 12:18:35 -0400
|
|
Joel,
I have some info that might help you.
There are two properties that you need to use - .Max and .Value.
Set your .Max to how many files need to be downloaded and then as you
download them - change .Value
ProgressBar.Max=AllFilesCount
ProgressBar.Value =0
For lX = 1 To AllFilesCount
BlablaBla
ProgressBar.Value = lX
Next lX
Works for me.
Eva
-----Original Message-----
From: Joel Hollender [mailto:jhollender@V...]
Sent: Tuesday, June 26, 2001 3:08 PM
To: ActiveX_Data_Objects
Subject: [activex_data_objects] Progress bar
To all:
could anyone please give me the basic syntax how to use the progress bar
control in V.B. I am transferring a lot of files from my local server to a
FTP site and I would like to show the user where he is up to and the amount
of files he transferred so far
Thank you in advanced
$subst('Email.Unsub')
Message #3 by Joel Hollender <jhollender@V...> on Thu, 28 Jun 2001 12:28:29 -0400
|
|
Thank you for your help and time.
my problem is I am transferring files to a FTP site and there is no way I
could know how many files we are going to transfer so there is no way to set
the .max value. if you have any information please tell about this
Thank you again I really appreciate your help
-----Original Message-----
From: Zadoyen, Eva [mailto:EZadoyen@s...]
Sent: Thursday, June 28, 2001 12:19 PM
To: ActiveX_Data_Objects
Subject: [activex_data_objects] RE: Progress bar
Joel,
I have some info that might help you.
There are two properties that you need to use - .Max and .Value.
Set your .Max to how many files need to be downloaded and then as you
download them - change .Value
ProgressBar.Max=AllFilesCount
ProgressBar.Value =0
For lX = 1 To AllFilesCount
BlablaBla
ProgressBar.Value = lX
Next lX
Works for me.
Eva
-----Original Message-----
From: Joel Hollender [mailto:jhollender@V...]
Sent: Tuesday, June 26, 2001 3:08 PM
To: ActiveX_Data_Objects
Subject: [activex_data_objects] Progress bar
To all:
could anyone please give me the basic syntax how to use the progress bar
control in V.B. I am transferring a lot of files from my local server to a
FTP site and I would like to show the user where he is up to and the amount
of files he transferred so far
Thank you in advanced
Message #4 by "Reed Mohn, Anders" <Anders.Reed.Mohn@i...> on Fri, 29 Jun 2001 14:19:07 +0200
|
|
A max value is needed, because there is no other way
of calculating progress.
After all, how can you tell how far you've gone,
(percentagewise) if you don't know how far you are supposed
to go?
What you can do, is to make an estimate: how many files
are usually sent, and how many are the maximum # of files
you think will be sent. Then set your max-value a little
above that.
Also, if your application lets the user pick a list of files
and then transfer them, you will at some point have that list
of selected files available.
Can't you run a count on those?
Cheers,
Anders :)
> -----Original Message-----
> From: Joel Hollender [mailto:jhollender@V...]
> Sent: 28. juni 2001 18:28
> To: ActiveX_Data_Objects
> Subject: [activex_data_objects] RE: Progress bar
>
>
> Thank you for your help and time.
> my problem is I am transferring files to a FTP site and there
> is no way I
> could know how many files we are going to transfer so there
> is no way to set
> the .max value. if you have any information please tell about this
>
> Thank you again I really appreciate your help
>
Message #5 by Joel Hollender <jhollender@V...> on Fri, 29 Jun 2001 09:38:51 -0400
|
|
Thank you all I really appreciate all your help
To Reed Mohn:
its a very good idea what you are saying. and I thing a lot of programs out
there are doing the same thing as you could see when a progress bar is
running when it comes to %75 it just jump to the end. it is still cool it
keeps the user busy
Thank you again
-----Original Message-----
From: Reed Mohn, Anders [mailto:Anders.Reed.Mohn@i...]
Sent: Friday, June 29, 2001 8:19 AM
To: ActiveX_Data_Objects
Subject: [activex_data_objects] RE: Progress bar
A max value is needed, because there is no other way
of calculating progress.
After all, how can you tell how far you've gone,
(percentagewise) if you don't know how far you are supposed
to go?
What you can do, is to make an estimate: how many files
are usually sent, and how many are the maximum # of files
you think will be sent. Then set your max-value a little
above that.
Also, if your application lets the user pick a list of files
and then transfer them, you will at some point have that list
of selected files available.
Can't you run a count on those?
Cheers,
Anders :)
> -----Original Message-----
> From: Joel Hollender [mailto:jhollender@V...]
> Sent: 28. juni 2001 18:28
> To: ActiveX_Data_Objects
> Subject: [activex_data_objects] RE: Progress bar
>
>
> Thank you for your help and time.
> my problem is I am transferring files to a FTP site and there
> is no way I
> could know how many files we are going to transfer so there
> is no way to set
> the .max value. if you have any information please tell about this
>
> Thank you again I really appreciate your help
>
|
|
 |