Download MetaTrader 5
To add comments, please log in or register
No time to learn MQL5? Order your application from a developer!
Cristian
20
Cristian 2015.04.24 06:57 

Hello,

I think I stumbled on a common issue experienced by many: modyfing array passed by reference

Files:
Cristian
20
Cristian 2015.04.24 07:00  
Can anyone provide so useful sugestion on how in the heck an array can be modified in this manner? What I do not understand is that in other codes seems to work (not this example, though). Thanks!
Keith Watford
Moderator
7887
Keith Watford 2015.04.24 08:54  

You do not size the arrays so they cannot be given any value.

If you had used property#strict, you would have got an array out of range error. 

Cristian
20
Cristian 2015.04.24 19:21  
GumRai:

You do not size the arrays so they cannot be given any value.

If you had used property#strict, you would have got an array out of range error. 

Yes, GumRai, you are perfectly right. Your comment is correct and pertinent. Just an ArrayResize is needed, now is working as expected. Thank you very much! Regards!
/
To add comments, please log in or register