"totalSteps"
This attribute specifies the total number of steps.
Synopsis
shape.totalSteps(int steps);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
steps |
Number of steps. This means that when the attribute "progress" is set to 30 and totalSteps to 100, 30% are shown. When "progress" is set to 30 and totalSteps to 1000, 3% are shown. |
Description
This attribute specifies the total number of steps.
Example
The following example sets the total number of steps to 100.
main(bool enter)
{
PROGRESS_BAR1.totalSteps(100);
}
Assignment
Progress bar