modyfing array passed by reference

 

Hello,

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

Files:
 
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!
 

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. 

 
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!
Reason: