SetRange

Description

Sets a duration for a progress bar control or sets the start and end position for a trackbar control.

Applies to

Progress bar controls

Syntax

controlname.SetRange ( startpos, endpos )

Argument

Description

controlname

The name of the progress bar or trackbar

startpos

Integer indicating the initial position of the range

endpos

Integer indicating the terminal position of the range

Returns

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

Usage

The default range for the progress bar controls is 0 to 100.

Examples

Example 1

This statement sets a range of 1 to 10 for a progress bar control:

HProgressBar.SetRange ( 1, 10 )

See also