xInfo.copy Method [AX 2012]
Copies lines from the Infolog buffer.
The following example uses the copy method to copy the content of the Infolog into a log.
boolean validateRecord()
{
boolean ok = true;
ok = intrastat.validateRecord();
if (ok)
intrastat.log = '';
else
{
intrastat.log = Info::infoCon2Str(
infolog.copy(infoLogCounter+1,infolog.num()));
infoLogCounter = infolog.num();
errorFound = true;
}
intrastat.update();
return ok;
}
Community Additions
ADD
Show: