>>--getRange------------------------------------><
Retrives the current high and low limits of the range of the progress bar.
Raises syntax errors when incorrect arguments are detected.
There are no arguments to this method.
The range is returned in a .Directory object with the following indexes:
The current minimum limit, as a signed number, for the progress bar.
The current maximum limit, as a signed number, for the progress bar.
This example demonstrates how the range is returned:
pb = self~getProgressBar("IDC_PB_COUNTDOWN")
if pb \= .Nil then do
pb~setRange(-200,200)
pb~setStep(10)
pb~setPos(-200)
end
...
::method displayCurrentRange private
expose pb
range = pb~getRange
say 'Current minimum:' range~min 'current maximum:' range~max
say
say 'Current minimum:' pb~getRange~min 'current maximum:' pb~getRange~max
/* Output would be:
Current minimum: -200 current maximum: 200
Current minimum: -200 current maximum: 200
*/