Array of arrays access New comment HarriMQL5 2016.11.02 18:52 Hello I have an array of arrays of ints. I want to access a particular sub-array but compiler says: "Invalid array access". What am I doing wrong?Please Note: I do NOT want to access individual elements of the sub-arrayint pattern[2][2] = {{-1,1},{1,-1}};.... int lTarget[] = pattern[0,0]; if (gridObj.PatternMatch( lTarget) && !trig[idx[1]]) { struct undeclared identifier problem loop over 2 dimensional array iRSI indicator changes close price inside. It causes different indicator values Carl Schreiber 2016.11.02 20:44 #1 You can't get/access/write slices of arrays - only single elements. Fstrifoerr8 2016.11.03 23:20 #2 Only arrays created in global space can be initialize some number and can have size.Try like this. int lTarget[];ArrayResize(lTarget,1); lTarget[0] = pattern[0,0]; New comment
Hello
I have an array of arrays of ints. I want to access a particular sub-array but compiler says: "Invalid array access". What am I doing wrong?
Please Note: I do NOT want to access individual elements of the sub-array
int pattern[2][2] = {{-1,1},{1,-1}};
....
int lTarget[] = pattern[0,0];
if (gridObj.PatternMatch( lTarget) && !trig[idx[1]]) {