expression has no effect

 

I'm getting this warning on this line of code:

intCount[intArrayElement++];

Now, I know this gives me the desired affect; it worked in prior builds of MT4. I'm just using an array to count the number of instances of patterns.

It's just a warning, but an odd one. Why?

 

Maybe try splitting it:

intArrayElement++;

intCount[intArrayElement];

Take a look here: https://docs.mql4.com/basis/operations/mathoperation

The prefix increment (++i) and decrement (--k) are applied to the variable right before this variable is used in an expression.

Post-increment (a++) and post-decrement (k--) are applied to the variable right after this variable is used in an expression.

 
Thanks toast. But I figured it out; I typed it wrong. It's supposed to be: intCount[intArrayElement]++;