[Jprogramming] bug in Grid?

Sherlock, Ric R.G.Sherlock at massey.ac.nz
Tue Feb 27 06:24:44 HKT 2007


Whoops - fixed incomplete sentence & spelling! 

-----Original Message-----
From: programming-bounces at jsoftware.com
[mailto:programming-bounces at jsoftware.com] On Behalf Of Sherlock, Ric
Sent: Tuesday, 27 February 2007 11:20
To: Programming forum
Subject: [Jprogramming] bug in Grid?

I have a form with a grid that displays different tables depending on
the selection in a list box.
The form also has "Flip" button that runs the flip__grid method.
 
If I change the selected list box item so that the grid displays a table
that has a different row count to the first then the HdrRowWid is not
updated and still has the length from the previous table.
 
That doesn't cause an immediate problem, but if I then try to flip the
table a length error is reported in initsizes[3] 
 >[3]   wid=. (>./HdrTopHex,HdrRowHex+HdrRowPad), HdrColWid >. CellWid
because the lengths of HdrColWid and CellWid do not agree.  My perusal
through the code suggests that HdrColWid is assigned from HdrRowWid
during the flip, but because the HdrRowWid is the wrong length the error
results.
 
The problem does not surface where the tables have different column
lengths but the row lengths are the same because HdrColWid is updated
when I change tables.
 
I suspect this is a bug?
 
Ric

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



More information about the Programming mailing list