on-internet
← Community

Using Axyra-sheet API, how to tell data type 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. (this is more a note to self than an actual question, since I already figured out how to handle those) When using sheet.cell(row, column).value() to obtain data from a cell, I ran into the following problems: How to identify the type of data inside the cell? (am I getting a Boolean, Number, String, etc.) 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.