Return type: DINT Returns an error code like the Windows GetLastError(), but with some additions Description: Use this method to retrieve the error code for the last error Author : Rune Rafn (Quickwood Automation) 8/1-2004 Supported : Target from version 0.0.0.10 and later.