Results 1 to 2 of 2
Thread: JXL Empty cell problem
- 01-12-2009, 04:53 PM #1
Member
- Join Date
- Jan 2009
- Posts
- 2
- Rep Power
- 0
JXL Empty cell problem
Hello, i recently posted about a problem calling an excel document but was able to figure it out with a friend, Now my problem is being able to tell a for statement to stop going down a column of cells once it reaches the end of the contents,(or an empty cell). I've tried using these codes.
for(int i = 0; sheet.getCell(0,i).getContents() != ""; i++)
for(int i = 0; sheet.getCell(0,i).getContents() != null; i++)
for(int i = 0; sheet.getCell(0,i).getType()!= CellType.EMPTY; i++)
for(int i = 0; sheet.getCell(0,i).getCellFormat()!= null; i++)
Each of these codes have given an out of bounds exception
any ideas on What i might try next?
- 01-26-2009, 03:32 PM #2
Similar Threads
-
KeyBindings Empty Key?
By Unome in forum Java AppletsReplies: 1Last Post: 10-24-2008, 07:28 PM -
Empty ResultSet
By Java Tip in forum Java TipReplies: 0Last Post: 02-09-2008, 08:36 PM -
Deleting an empty directory
By Java Tip in forum Java TipReplies: 0Last Post: 01-13-2008, 07:17 AM -
Not Empty check of texboxes using javascript
By Anju Jose in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 01-09-2008, 12:04 PM -
BufferedReader empty
By Peter in forum Advanced JavaReplies: 2Last Post: 07-02-2007, 06:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks