TextIo.status Method [AX 2012]
Retrieves the status of the last operation performed on a TextIo object.
The following example throws an error if a file does not exist or if the last operation on the file did not have a status of the IO_Status::Ok enumeration value.
protected void checkDiskFileStatus()
{
if (!diskFile || diskFile.status() != IO_Status::Ok)
{
throw error(strfmt("@SYS76826", diskFileName));
}
}
Community Additions
ADD
Show: