This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

getlasterror-function


Back to topics list
avatar
11
Daniel 2005.01.19 19:50 
Hello guys again,

i just try to write an expert in the new language. in your example there is a function getlasterror, but i can't find anything about this function in the library.
what does this function, how to use it, what is the output???
Thanks in advance

Daniel
avatar
4464
Slawa 2005.01.20 11:52 
quote from dictionary
===
int GetLastError()

Returns last occured error after an operation and sets internal last error value to zero.

Sample

FileWrite(handle, "Bars total = ", Bars);
if(GetLastError()!=0) Alert("Some error message");
===
see also our script samples
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets