void demofunc( double & arr[][])
Yes, And I get a strange error :
lopAIndex[2][];
'[' - invalid index value
Now why should this array not accept a dynamic size on the y?
Thank you.
void demofunc( double & arr[][]) { }
Note that I would like this function to accept a two-dimensional array whose second dimension length could be any value, so changing the code above to arr[][10] instead of arr[][] wouldn't work for me.
Does anyone know what I am doing wrong?
Thank you very much in advance,
Robox
Compiles fine with MT4 1045.
Hi @whroeder1 ,
Thank you for the info about MT4. Unfortunately, I am using MT5 (build 1545) and it definitely doesn't compile for my version of MT5.
Do you or does anybody else know why this would work in MT4 but not in MT5?
What is the correct syntax for MT5, or is it even possible?
Thank you very much in advance,
Robox
Hi @whroeder1 ,
Thank you for the info about MT4. Unfortunately, I am using MT5 (build 1545) and it definitely doesn't compile for my version of MT5.
Do you or does anybody else know why this would work in MT4 but not in MT5?
What is the correct syntax for MT5, or is it even possible?
Thank you very much in advance,
Robox
I moved this question to its own thread ( https://www.mql5.com/en/forum/187666 ) since I posted it yesterday and there's still been no solution proposed for MT5.
Hopefully someone can help for the sake of all MT5 programmers, because a solution to this problem would be immensely powerful, moving MQL5 closer to MATLAB regarding matrix manipulation.
![Please help: The following compiles in MT4 but not MT5: void demofunc( double & arr[][]) { } Please help: The following compiles in MT4 but not MT5: void demofunc( double & arr[][]) { }](/i/community/logo_mql5_small.png)
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
The code below is not working. Can I pass a multidimensional array as a parameter