MQL4 Reference Predefined Variables _LastError

MQL4 Help as One File:

int _LastError

The _LastError variable contains code of the last error, that occurred during the mql4-program run. Its value can be reset to zero by ResetLastError().

To obtain the code of the last error, you may also use the GetLastError() function.