ArrayInsert() issues with fixed arrays and docs
Florin Ionesko:
Testing ArrayInsert() in the code example on ArrayInsert() gives:
ERR_ARRAY_RESIZE_ERROR |
4007 |
Not enough memory for the relocation of an array, or an attempt to change the size of a static array |
So I suspect that MetaQuotes has changed the way ArrayInsert() works for static arrays and hasn't updated the documentation to suit.
Modify
int array_dest[10];
to this
int array_dest[]; ArrayResize(array_dest,10);
Also, documentation doesn't fit with the test:
And this shows an overwriting, not a "come off":
Anyway, if arrays are dynamic, they work fine.