on-internet
← Community

Using Axyra-sheet API, how to tell data type (number from text, a date or a blank cell) when reading a cell value?

Stack Overflow ·

This is the first real problem I got when building a cell iterator reading data from an xlsx workbook in axyra. When using sheet.cell(row, column).value() to obtain data from a cell, I ran into the following problems: How to tell if a cell is a number or a date? value of 45291.0 can be a date, or it can just be a number? How to tell if a cell contains a real empty string "", or if it contains nothing and just parses as "" in API, since the result .value() is never null?

Comments

Sign in or sign up to comment and upvote.

No comments yet.