Download MetaTrader 5

Possible MQL4 Bug

To add comments, please log in or register
Nikolay Panev
1096
Nikolay Panev  

Hi,
I've come across on something weird. Having an extern input variable followed by comment changes the name of the variable in the EA's/script's Inputs Window. The following code:

extern string myVar = "abc"; // This is a comment
extern double d = 2.5; /* Another comment */

 compiles fine and results in this

 

Carl Schreiber
7096
Carl Schreiber  

It's a new feature not a bug!

If you want to see the variables just delete the comments.

Nikolay Panev
1096
Nikolay Panev  
gooly:

It's a new feature not a bug!

That explains it, thanks.
whroeder1
15582
whroeder1  
gooly: It's a new feature not a bug!

If you want to see the variables just delete the comments.

Or as another thread suggested, a second semicolon.
extern string myVar = "abc"; ;// This is a comment
extern double d = 2.5;       ;/* Another comment */

To add comments, please log in or register