Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Process bar
Message
De
16/09/2004 09:35:33
 
 
À
16/09/2004 07:02:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00941827
Message ID:
00942879
Vues:
23
Yes, Tore is right. While processing a table having 10,000 records, if the progressbar is refressed 10,000 times, it will cause cinsiderable delay. I use something like the following code in the Update() method of my progress class.
* Progressbar Update (Refresh)

lnNewValue = INT( lnPassedValue * 100 / ProgressBar.MaxValue) 
IF lnNewValue <> ProgressBar.CurrentValue 
	ProgressBar.CurrentValue = lnNewValue 
	* Refresh bar 
	
ENDIF 
RETURN
The progressbar will be refreshed only a few times and for nearly 99% of time, it will just return after executing a two-line code.

- Ravi
- Ravi Taxali
Visual FoxPro Made Simple An excellent book for beginners as well as experienced programmers
Never Forget Again. Setup Email Reminders.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform