Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process bar
Message
De
15/09/2004 11:33:32
 
 
À
15/09/2004 11:19:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00941827
Message ID:
00942452
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform