fjenett / xlsreader-library-processing

a Processing library that can read from .xls (aka. Excel) files
12 stars 5 forks source link

make public isCellType function #11

Closed klitsner closed 1 year ago

klitsner commented 8 years ago

It would be very useful to be able to check a cell for the type of its contents. If a column contains both int and string data types, there currently seems to be no way of checking.

fjenett commented 8 years ago

Yes, good point

markusand commented 7 years ago

It would be nice if other functions like selectRow() or getLastCellNum() could also be public

fjenett commented 1 year ago

Added a new method to get the type of a cell as string. You can alter simple example 1 like this to see it in action:

println( reader.getCellType( 1, 0 ), reader.getString( 1, 0 ) );
println( reader.getCellType( 2, 0 ), reader.getInt( 2, 0 ) );
println( reader.getCellType( 3, 0 ), reader.getFloat( 3, 0 ) );