
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
4099 is from other code. Only check GetLastError if the previous function returns an error.
FileDelete returns void so you have to GetLastError to clear it, FileDelete, GetLastError to get the real one.
yes, i think thats it..
it seems like the errorcode comes for the fileread-function, but
my function is allmost a copy of the mql4 reference - filedelete sample...
is that code wrong ?? there they work with GetLastError(), too...
EDIT:
sorry, my failure.. now i understand...
a call of GetLastError() clears the old error and another call after FileDelete() brings the right errorcode
Thanks for your help !!