The following sets up a simple grid to describe my problem.
CELLDATA =: (<"0 i.3),. (,. each(i.4);(i.3);(i.2)),. (i.4 2);(i. 3 4);i. 2 3
grid CELLDATA
Note ''
The mouse events on the grid identify the cell location
I would like to identify the item within the array in the
cell with a mouse event. Is there any easy way to do this?
e.g. I would like to identify item 2 in the cell (<1 1){CELLDATA
to analyse the case that line represents.
Finding the cell and expanding it to a separate grid provides one route but
I
would like to do it without that intermediate step.
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm