This documentation is archived and is not being maintained.
xInfo.clear Method [AX 2012]
Deletes lines from the Infolog buffer.
public void clear([int linesLeft])
Run On
Called
Parameters
-
linesLeft
- Type: int
Number of lines to leave in the buffer; optional.
Do not call this with method with the default value of zero unless another process has not put information into the Infolog.
Use this pattern to clear the Infolog cache:
int line = Global::infologLine();
try
{
//
}
catch
{
infolog.clear(line);
}