Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Microsoft Progress Bar SP6
Message
From
30/07/2003 05:55:14
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00814827
Message ID:
00814832
Views:
11
Neil,

Try the following and see if it suits your purposes.
ThisForm.oleProgressBar.Min = 0
ThisForm.oleProgressBar.Max = 100

select count(*) from customers into cursor test ;
	where ThisForm.UpdateProgress(recno(), reccount()) 
Create a method on the form called UpdateProgress.
LPARAMETERS tnRecno, tnReccount
LOCAL lnPercentage

lnPercentage = int(tnRecno * 100 / tnReccount)
ThisForm.oleProgressBar.Value = lnPercentage
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform