Share via


SysOperationProgressBase.setCount Method [AX 2012]

Sets the position of the progress bar during an operation.

Syntax

public void setCount(int64 _i, [int _idx])

Run On

Called

Parameters

  • _i
    Type: int64
    The position in the process (how far through).
  • _idx
    Type: int
    The bar to increment the steps for; optional. Only should be used when you have more than one bar.

Examples

static void exampleMethod(Args _args) 
{ 
    SysOperationProgress progress = new SysOperationProgress(); 
    int i; 
     
    progress.setTotal(100); 
    for (i=1; i<=100; i++) 
    { 
        do_something(); 
        progress.setCount(i); 
    } 
}

See Also

SysOperationProgressBase Class

SysOperationProgressBase.incCount Method