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 and 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 .
 
I suspect this is a bug?
 
Ric

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

Reply via email to