Download MetaTrader 5
To add comments, please log in or register
Use the Pocket to paste your content. It is convenient!
chinaski
823
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
7906
Keith Watford 2015.09.17 21:47  

Possibly in the EA you have

#property strict

 but not in the script

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