Different compilers for scripts and experts ?

Back to topics list To post a new topic, please log in or register
avatar
23
chinaski 2015.09.17 22: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 

avatar
Moderator
3416
GumRai 2015.09.17 23:47 #
 

Possibly in the EA you have

#property strict

 but not in the script

avatar
23
chinaski 2015.09.18 21:46 #
 
GumRai:

Possibly in the EA you have

 but not in the script

That's it. Thank you!
Back to topics list  

To add comments, please log in or register