Download MetaTrader 5

Different compilers for scripts and experts ?

To add comments, please log in or register
chinaski
890
chinaski 2015.09.17 20:54 

Hello,

when having a for loop  in a script

 

void function(void)
{
for(int idx=0;idx < 10;++id)
{
;
}
for(idx=0;idx < 10;++id)
{
;
}

}

 no compiler error.

Having same in an expert, i get a compiler error about unknown idx in 2nd loop.

What is the reason for that ?

Thank you 

Keith Watford
Moderator
9642
Keith Watford 2015.09.17 21:47  

Possibly in the EA you have

#property strict

 but not in the script

chinaski
890
chinaski 2015.09.18 19:46  
GumRai:

Possibly in the EA you have

 but not in the script

That's it. Thank you!
To add comments, please log in or register