Mike- Monday, January 9, 2012, 2:28:24 PM, you wrote: > put ((yy - 1) * W * 4 ) + ((xx - 1) * 4) into myindex ...and if I'm not wrong about this, that would be put (((yy - 1) * W) + xx - 1)* 4 into myindex -- -Mark Wieder mwieder at ahsoftware.net