Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use progressBar?
Message
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00093150
Message ID:
00982004
Views:
48
Here's how you do it.

1) Add the _THERM.VCX control to your form. For VFP 6, it should be located in your Microsoft Visual Studio\VFP98\FFC directory; it should be located in a similar directory for other versions. Let's suppose you rename the control to pbrProgress.

2) Determine how many events of processing steps for which you want to display progress. For instance, lets say you have 12 proceswsing steps. You must initialize the control with this number of events:
   ThisForm.pbrProgress.Reset(12)
3) Initialize a counter to increment each event as it occurs. Let's call it lnCtr:
   lnCtr = 0
3) Just after each of these events, do the following:
   lnCtr = lnCtr + 1
   ThisForm.pbrProgress.Update(lnCtr)
4) After the last event or processing step, finish the process:
   ThisForm.pbrProgress.Complete()
This is about all you need to do. This is just about exactly what I'm doing and it works fine. Hope it works for you, too.

Henry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform