If you name your loopindex, you should address it by name.
ArrayFruits.At(loopindex("j"))
If you aren't running multiple loops, which you don't seem to be doing, skip the name and just use loopindex.
Also, run from 0 to InvArrayMaxSize-1
(Not sure where you got the 0.0 from, that won't work).