--- In [email protected], Steve Searle <[EMAIL PROTECTED]> wrote:
>
> Use two loops, an outer one for the rows, and an inner one for each cell
> within the row.

...with a test that the cell isn't the one in the middle.

Alternatively, use a function that takes a cell position relative to
the cell of interest in terms of x and y offsets, and call that 8
times. So the offsets will be (x, y): top row: (-1, -1) (0, -1) (1,
-1); middle row: (-1, 0) (1, 0); bottom row: (-1, 1) (0, 1) (1, 1).

I would try both methods, and see which one looks/works best.

John

Reply via email to