DlgProgressBar.SetPos

DlgProgressBar.SetPos ( 

number ControlID,

number Pos )

Example 1

position = DlgProgressBar.SetPos(nControlID, nPos);

Sets the position of the progress bar control in "nControlID" to the value in the variable "nPos".

Example 2

-- Get the range progress bar control
tRange = DlgProgressBar.GetRange(CTRL_PROGRESS_BAR_01);

-- If the user-defined process is complete, set the control's position to 'end'.
if bProcessComplete then
    DlgProgressBar.SetPos(CTRL_PROGRESS_BAR_01, tRange.End);
end

Gets the range for the '01' progress bar control and stores it in the table "tRange".  If the boolean variable "bProcessComplete" is set to true, the position of the control is set to the greatest possible value.

See also:  Related Actions