Meet us at at Real World in Orlando, Florida.
All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
ProgressDialog.SetProgress
Component: ProgressDialog
Version: 2.4
Mac OS X: Works
Windows: Works
MBS( "ProgressDialog.SetProgress"; value )
Parameters
| Parameter | Description | Example value |
|---|---|---|
| value | New value. Range from 0 to 100 for a normal progress bar or negative value for indeterminated progress bar. | 50 |
Result
Returns "OK" on success.
Description
Sets the current progress value.Depending on your range, you need to multiply/divide to get into range from 0 to 100. Typically you can simply do math like this: $index * 100 / $total. That calculates the percentage of files processed if you have $total files and current file index is $index.
Examples
Set progress bar to indeterminate while preparing operations:
MBS( "ProgressDialog.SetProgress"; -1 )
Set later progress bar to current value:
MBS( "ProgressDialog.SetProgress"; $index * 100 / $total )
Feedback: Report problem or ask question.
Links
MBS Real Studio Chart Plugins - Bilder aus Nickenich