for (y = SelTop; y <= SelBottom && y <= Bottom; y++) { for (x = SelLeft; x <= SelRight && x <= Right; x++) { [x,y] = left([x,y], len([x,y]) - 1) + "_" + right([x,y], 1); } }