Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process bar
Message
From
15/09/2004 11:33:32
 
 
To
15/09/2004 11:19:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00941827
Message ID:
00942452
Views:
19
>I use progress bar in my VFP code a lot. Basically it is class that displays a form with retangular shapes. Within a FOR-ENDFOR, SCAN - ENDSCAN loop, I update the progress bar form. The following code illustrates a typical use
>
>
>
>ProgressBar = CreateObject('Progress')   && For Progress Bar
>
>SELECT(SourceWA)				
>[SNIP]
>[SNIP]
>ProgressBar.Update(1,100)	&& 100 % done	
>**
>ProgressBar.Hide()
>



Ravi:

I don't use this particular class but a similar one. On yours I would save the need for one line and the need to remember it. The last line ProgressBar.Hide() can be avoided (also you are not releasing but hiding) by putting a short wait (you can use the API code SLEEP) after the Update value reaches 100% and after this interval it releases itself.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform