Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Progress Bar not moving to 100% at right time
Message
From
21/08/2002 17:31:23
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00692196
Message ID:
00692243
Views:
20
>SET CLASSLIB TO PROGBAR.VCX Additive
>oProgBar = CREATEOBJECT('ProgBar')
> [snip ]
>oProgBar.SetRange(nTop, nEnd)
> [ snip ]
>nEnd greater than 4 million
>
>How can I change the rate of the progress bar output?

There are limits to the mininum and maximum values in SetRange. These are documented in the chm help file that comes with commctrl itself. You can find the chm help file in commctrl.zip, which is included in progbar.zip. Quoting: "The minimum value in the range can be from 0 to 65,535. Likewise, the maximum value can be from 0 to 65,535. If you do not set the range values, the system sets the minimum value to 0 and the maximum value to 100. You can adjust the range to convenient integers by using the SetRange method."

Also the SetStep() method may be of interest to you when working with with a range this large.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Reply
Map
View

Click here to load this message in the networking platform