MQL4 - automated forex trading   /  

Documentation

Login | Register | Language: ru cn en
DOWNLOAD THE NEW METATRADER 5 ANDROID WITH THE DEPTH OF MARKET AND NEWSDOWNLOAD THE NEW METATRADER 5 ANDROID WITH THE DEPTH OF MARKET AND NEWS

MQL4 Reference Checkup GetLastError

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.

Note

After the function call, the contents of _LastError are reset.

For convenience, trade errors are additionally listed in the Trade Server Return Codes section.