SetRange
PowerScript function
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
|
1 |
controlname.SetRange ( startpos, endpos ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the progress bar or trackbar |
|
startpos |
Integer indicating the initial position of the |
|
endpos |
Integer indicating the terminal position of the |
Return value
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
This statement sets a range of 1 to 10 for a progress bar
control:
|
1 |
HProgressBar.SetRange ( 1, 10 ) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest