Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process bar
Message
From
16/09/2004 09:35:33
 
 
To
16/09/2004 07:02:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00941827
Message ID:
00942879
Views:
22
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform