xInfo.num Method [AX 2012]

Retrieves the number of exceptions of the specified type in the Infolog buffer.

public int num([Exception exceptionType])

Run On

Called

Parameters

exceptionType
Type: Exception Enumeration
A Exception system enumeration value that indicates the exception type to count; optional.

Return Value

Type: int
An integer that represents the number of exceptions of the type specified by the exceptionType parameter, or the total number of lines in the Infolog if no parameter is specified.

The following example returns the number of warnings in the Infolog.

{ 
  
    print infolog.num(Exception::Warning); 
    pause; 
}

Community Additions

ADD
Show: