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
===
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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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