Download MetaTrader 5
MQL5 ReferenceCheckupGetLastError 

GetLastError

Returns the contents of the system variable _LastError.

int  GetLastError();

Return Value

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

Note

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

See also

Trade Server Return Codes


Updated: 2015.12.03