DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23954>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23954

HSSFRow.getLastCellNum() returns value for current row?

           Summary: HSSFRow.getLastCellNum() returns value for current row?
           Product: POI
           Version: 2.0-pre3
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


It seems that HSSFRow.getLastCellNum() returns the number of the last non-empty 
cell in the LONGEST row of the sheet, not in the CURRENT row of the sheet.  Is 
this the intent?  If so, it seems like it should be a method in HSSFSheet.  
Having it in HSSFRow implies (to me) that it is the number of the last non-
empty cell in the current row.
Eg., if the last cell in row 0 containing a value is the fifth cell and the 
last cell in row 1 containing a value is the sixth cell, the following code 
returns a value of 6 for count:

HSSFRow row = sheet.getRow(0);
int count = row.getLastCellNum();

Seems to me it should return 5.  The javadocs for this method say it returns 
the number of the last cell contained in THIS row.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to