Both Bill Lam's code and mine do essentially the same thing, just in different 
ways. Bill's is more concise and cleaner for a simple application but 
separating the updating of the grid in its own verb is perhaps tidier once the 
grids and/or application become more complex.

I don't think the features they use are undocumented or even unrepresented in 
the example code, rather that you found them illuminating because they 
addressed the specific problem that you had. 

The following example uses a lot of the same techniques as my code.
http://www.jsoftware.com/jwiki/Grid/Examples#Gridsinatabbeddialog

> From: Donald Pittenger
> Ric,
> 
> The items that seemed new to me were as follows.  (Note that I might
> have missed them in the Wiki -- I only relied on two or three of the
> examples as guides based on the feature being featured in the script
> titles.)
> 
> update_grid0 DATAMAT
> 
> update_grid0=: 3 : 0
>    CELLDATA=. <"0 y
>    GRIDID=. GRIDLOC=. 'grid0'
>    show__grid0 pack ;:'CELLDATA GRIDID GRIDLOC'
> )
> 
> Without that, I would have remained stymied, thrashing around in
> various locale spaces.  I should add that Lam's code might also have
> done the job just as well, but I didn't get around to trying it..
> 
> Donald Pittenger
> 
> On Mar 18, 2010, at 6:21 PM, Sherlock, Ric wrote:
> 
> >> From: Donald Pittenger
> >>
> >> Thank you for this latest round of help.
> >>
> >> I decided to use Ric Sherlock's code as a basis for my grid routine
> >> and it worked!
> >
> > Nice to know that it was useful.
> >
> >> Interesting that some of the operations in his sample are either
> >> missing or hard to find on the J website.  This suggests potential
> >> documentation improvement might be needed.
> >
> > I'm sure you're right. The wiki is a community resource, editable
> > by the community. We can all help make it better. It would be
> > helpful if you were able to list the things that you found hard to
> > find.
> >
> > Regards,
> > Ric
> >
> > ---------------------------------------------------------------------
> -
> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to