getRange

>>--getRange------------------------------------><

Retrives the current high and low limits of the range of the progress bar.

Details

Raises syntax errors when incorrect arguments are detected.

Arguments:

There are no arguments to this method.

Return value:

The range is returned in a .Directory object with the following indexes:

min

The current minimum limit, as a signed number, for the progress bar.

max

The current maximum limit, as a signed number, for the progress bar.

Example:

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

*/