Just be careful with the new MQL4.5 language. The MetaEditor inserts 'property #strict' into new files, which documentation suggests 'i' might not be initialised in this case?
But then the documentation looks a bit confusing? It says:
Since the number of changes is large
enough, the new #property strict
property has been introduced to provide maximum compatibility with the
previous approach to developing MQL4 programs.
But the 'The table of differences between compilers' below that quote seems to indicate that #property strict makes MQL4 less compatible with old MQL4 and more compatible with MQL5 ?? I think I've just confused myself!
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
hence why I saw that i defaulted to 0.
Just be careful with the new MQL4.5 language. The MetaEditor inserts 'property #strict' into new files, which documentation suggests 'i' might not be initialised in this case?
But then the documentation looks a bit confusing? It says:
Since the number of changes is large enough, the new #property strict property has been introduced to provide maximum compatibility with the previous approach to developing MQL4 programs.
But the 'The table of differences between compilers' below that quote seems to indicate that #property strict makes MQL4 less compatible with old MQL4 and more compatible with MQL5 ?? I think I've just confused myself!