ProgressBar.Increment

Description

Advances the current position for the progress bar control by the specified number of steps. If the visibility is set to true the ProgressBar is redrawn to reflect the new position.

Scripting Syntax

oInteger = ProgressBar.Increment( [IncrementValue] );

Return Value

Integer

Parameters

Parameter Type Description
IncrementValue Integer The amount to increment the current value. A value less than zero is invalid and will result in an "invalid argument" error.

Default Value: 1

Examples

VBScript Example

dim progressbar
set progressbar = XSIUIToolkit.ProgressBar
progressbar.Maximum = 70
progressbar.Step = 1
progressbar.Visible= true
for i = 1 to progressbar.Maximum
        progressbar.Increment 1
next