MQL4 Reference
Checkup
GetLastError
|
The function returns the last occurred error, then the value of special
last_error variable where the last error code is stored will be zeroized.
So, the next call for GetLastError() will return 0.
Sample:
int err;
int handle=FileOpen("somefile.dat", FILE_READ|FILE_BIN);
if(handle<1)
{
err=GetLastError();
Print("error(",err,"): ",ErrorDescription(err));
return(0);
}
|
|
|