Download MetaTrader 5
To add comments, please log in or register
1000 developers are involved in Freelance service activity. Sign up!
Nikolay Panev
1059
Nikolay Panev 2015.12.22 19:34 

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
5937
Carl Schreiber 2015.12.22 19:42  

It's a new feature not a bug!

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

Nikolay Panev
1059
Nikolay Panev 2015.12.22 20:50  
gooly:

It's a new feature not a bug!

That explains it, thanks.
whroeder1
13596
whroeder1 2015.12.22 20:58  
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