Removes the last error message from memory.
You can set up Microsoft Dynamics NAV so that it keeps running even if a run-time error occurs. You can use theto determine whether an error has occurred and to see the actual text in the last error message that was generated. You can then use the CLEARLASTERROR function to remove the last error message from memory. If you subsequently call the GETLASTERRORTEXT function, an empty string is returned.