getPos

>>--getPos--------------------------------------><

This method returns the current position of the progress bar.

Details

Raises syntax errors when incorrect arguments are detected.

Arguments:

There are no arguments.

Return value:

The current position of the progress bar is retunred.

Example:

In this example, the range for the progress bar is set to -200 to 200. At another point in the program, the current position is printed to the screen. This is not real-world use case, just an example:

  pb = self~getProgressBar("IDC_PB_COUNTDOWN")
  if pb \= .Nil then do
     pb~setRange(-200,200)
     pb~setStep(10)
     pb~setPos(-200)
  end
  ...

::method display private
  expose pb

  pb~step
  say 'Now at position' pb~getPos

/* Output might be:

Now at position -190
Now at position -180
Now at position -170
Now at position -160
...

*/