SetRange PowerScript function
Description
Sets a duration for a progress bar control or sets the start
and end position for a trackbar control.
Controls
Progress bar controls
Syntax
1 |
<span>controlname</span>.<span>SetRange</span> ( <span>startpos</span>, <span>endpos</span> ) |
Argument |
Description |
---|---|
controlname |
The name of the progress bar or trackbar |
startpos |
Integer indicating the initial position |
endpos |
Integer indicating the terminal position |
Return Values
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.<span>SetRange</span> ( 1, 10 ) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest