Download MetaTrader 5

Different compilers for scripts and experts ?

To add comments, please log in or register
chinaski
921
chinaski  

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
10569
Keith Watford  

Possibly in the EA you have

#property strict

 but not in the script

chinaski
921
chinaski  
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