StepIt

Description

Increments the current position in a progress bar control by the value specified in the SetStep property of the control.

Applies to

Progress bar controls

Syntax

control.StepIt ( )

Argument

Description

control

The name of the progress bar


Return value

Integer.

Returns 1 if it succeeds and -1 if there is an error.

Usage

StepIt causes the position in a progress bar to wrap if the value of the SetStep takes the current position out of range. For example, if the SetStep value is 40, the current position 80, and the range is set from 0 to 100, the position on the redrawn progress bar after you call StepIt is 20.

The SetStep property can have a negative value. The default value for SetStep is 10.

Examples

This statement adds the SetStep increment to a progress bar control:

HProgressBar.StepIt ( )

See also

SetRange