2 dimensional array

 

Hi,

Do you have any idea how to resize two dimensional array? The function ArrayResize work only for the first dimension.

Thanks.

 
fufo12 wrote >>

Hi,

Do you have any idea how to resize two dimensional array? The function ArrayResize work only for the first dimension.

Thanks.

Form me was working like this ...

int data[0][23];

....

int length = ArrayRange(data, 0);
ArrayResize(data, length + 1);

 

May I do it with class in MQL5.

It can be compiled.
0 error(s), 0 warning(s),
but, 0 indicator(s).

look my code:

https://www.mql5.com/en/forum/121672

 
fufo12 wrote >>

Hi,

Do you have any idea how to resize two dimensional array? The function ArrayResize work only for the first dimension.

Thanks.

fufo12, that is correct, MQL4 can only resize the first dimension of an array. The second, third, and fourth dimensions must be explicitly defined and cannot be changed once the code is compiled.

Reason: