Let's say you have 100 steps in your progress bar.
At end of step 1, set to 1*100/4=25.
At end of step 2, set to 2*100/4=50.
Let's say the result set has N items. At each iteration i of step 3, set to ((i / N)*100/4)+50.
Let's say the result of step 3 was M objects. At each iteration j of step 4, set to ((j / M)*100/4)+75.
Sounds like a question from a summer class quiz. :-)
Main Topics
Browse All Topics





by: wht1986Posted on 2009-08-25 at 11:47:41ID: 25180825
Ive always used 2 progress bars, one positioned just above the other. The top one would be the progress of phases (1,2,3,4), and the bottom one is the progress during a particular phase.
I just added some sleep calls to slow the loops down in the code, but you should get the idea where I am going
Select allOpen in new window
progress bars