| | | | Browse by category |
Article ID: 1082
Last updated: 02 Feb, 2008
Problem
Using the getNumberRowCol() method in Grid.J throws an exception or gives invalid results.
Cause
There is a bug in this method.
Action
Change the getNumberRowCol() method in GXDataSheet to read as follows:
Using the getNumberRowCol() method in Grid.J throws an exception or gives invalid results.
Cause
There is a bug in this method.
Action
Change the getNumberRowCol() method in GXDataSheet to read as follows:
public double getNumberRowCol(int nRow, int nCol)
{
int r = getEngineRow(nRow);
int c = getEngineCol(nCol);
GXCellInfo cp = _gx_find_cell(r, c);
double number = 0.0;
if (cp!=null && cp.value!=null) {
try {
number = Double.valueOf(cp.value.toString()).doubleValue();
} catch (Exception ex) {}
}
return number;
}
Make this change to the GXDataSheet class in AWT, JFC, and AFC as necessary.
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 1082
Last updated: 02 Feb, 2008
Revision: 1
Views: 2655
Posted: 05 Aug, 1998 by
Dean J.
Updated: 02 Feb, 2008 by
Dean J.
Others in this category
Powered by KBPublisher (Knowledge base software)