Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could someone teach me how to use the progressbar
Message
 
To
19/03/2000 01:58:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347546
Message ID:
00347607
Views:
18
>Good day,
>I'm a Foxpro novice user and i want to know how to use
>the progress bar to keep track of the files being uploaded
>or copied to another pc?
>
>thanks
>ervin

Ervin, you didn't specify which progressbar do you use, but all kind of progressbars usually have something in common:
-the method which resets the progressbar to 0,
-the method which sets the range of progress bar so it calculates the right percentage to show
-the method which updates the current status in % when it gets the current number.

So the general approach would be like:

this.parent.cntProgressBar.Reset()
lnFiles = my_number_of_files_to_copy
this.parent.cntProgressBar.SetRange(1, lnFiles))
FOR ln=1 to lnFiles
* code for copying files here
this.parent.cntProgressBar.SetValue(ln)
ENDFOR


HTH,
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform