Hi
This mql5 code gives a compile time error: "abc undeclared identifier", any idea why and how to fix it?
Thanks
hmm... when i compile, i only get ['.' - name expected] for this line:
abc.Add(x);
and if i comment out this line, everything else compiled without error... are we using a different compiler? LOL
hmm... when i compile, i only get ['.' - name expected] for this line:
and if i comment out this line, everything else compiled without error... are we using a different compiler? LOL
Ok, I get the problem fixed, but now I am getting a new compile problem on the line
abc.Add(x);
Invalid array access, member function not defined.
But the docs says I can
https://www.mql5.com/en/docs/standardlibrary/datastructures/carraylong/carraylongadd
![Documentation on MQL5: Standard Library / Data Collections / CArrayLong / Add Documentation on MQL5: Standard Library / Data Collections / CArrayLong / Add](https://c.mql5.com/36/25/documentation-on-mql5-standard__6.png)
- www.mql5.com
Ok, I get the problem fixed, but now I am getting a new compile problem on the line
Invalid array access, member function not defined.
But the docs says I can
https://www.mql5.com/en/docs/standardlibrary/datastructures/carraylong/carraylongadd
The docs refer to object-oriented array objects that inherits from CArray class. These arrays are not the same as your abcArr[].
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi
This mql5 code gives a compile time error: "abc undeclared identifier", any idea why and how to fix it?
Thanks