Returns or sets the current value of the progress range.
[ dValue = ] Object.ProgressValue
The ProgressMin property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AStatusBarPane |
AStatusBarPane object |
|
dValue |
Double |
A double specifying the current value of progress bar pane. Default value is 0. |
This property only applies to progress pane of style Progress Bar.
This current value is set initially 0 at the outset as well as maximum and minimum values. Then as an execution progresses, setting progress values will display the progress on the pane as expected.
The following statement sets the current value and Min to be 0 and Max to be the number of tests in a program at the beginning:
sbr.Panes("Progress").ProgressMin=0
sbr.Panes("Progress").ProgressMax=iTests
sbr.Panes("Progress").ProgressValue=0
As each test is executed, the value gets incremented by one:
if GetNodeType(m_stRunTime.nodeRun)=ateNodeTest
sbr.Panes(atePaneProgress).ProgressValue=sbr.Panes(atePaneProgress).ProgressValue+1
endif