load'debug'
dbss'grid_gridhandler 2 '
dbr 1
load'<filecontaininggrid script'
NB. now change a cell and wait for the debug to kick in
NB. experimenting with that line indicates the following.
This seems to show that the 0j2": fails. Is this because the old
information is not numeric. Changing the following verb seems to fix
this problem.
grid_gridhandler=: 3 : 0
res=. 1
if. y -: 'change' do.
old=. ": readcell__gridloc Cell__gridloc
new=. ": Value__gridloc
smoutput 'changed cell ',(":Cell__gridloc),' from ',old,' to ',new
end.
res
)
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm