Sets the progress bar current position as specified by nPos.

syntaxSyntax:
DlxProgressBar.SetPos(nPos)

Parameters

Parameter Description
nPos New position of the progress bar.

Return Value

If the operation ends correctly, it returns true otherwise it returns false.

Example

  Copy codeCopy code
var bar = DlxApp.GetProgressBar();
bar.Show("ProgressBar");
for (var i = 0; i < 100; i++)
{
  bar.StepIt();
  DlxApp.Delay(20);
}

See also