>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