MORE INFORMATION:
The compiling reports the correct line number before this line of code
The compiling reports the correct line number before this line of code
extern color MLineColor=C'255,255,148';
and the line numbers are completely wrong for everything after that line of code. If I comment out the assignment of a custom color, then the compiler gets the line numbers correctly.
The compiler is counting that line of code as line number 1, and so when I double click on the compile error it moves my pointer to the wrong line number.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Sometime recently the line numbers MetaEditor shows in compile errors are not counting comments, so the line numbers are too small and I can't tell what line of the program the error is in.
So when I double click on the error it takes me to the wrong line of code. The longer the program is, the more inaccurate the line number is.
Is there a certain format that the comments have to follow in order for MetaEditor to count them?
What is going on?
Thanks,