MQL4 - automated forex trading   /  


Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

MQL4 Reference Checkup GetLastError


Returns the contents of the system variable _LastError.

int  GetLastError();

Returned Value

Returns the value of the last error that occurred during the execution of an mql4 program.


After the function call, the contents of _LastError are not reset. To reset this variable, you need to call ResetLastError().