lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

the xls library for lua (https://github.com/jjensen/lua-xls) provides Cell object;
calling cell:Type() may return one of these:

    cell.UNDEFINED
    cell.INT
    cell.DOUBLE
    cell.STRING
    cell.WSTRING
    cell.FORMULA

How to obtain value of the result when cell:Type() == cell.FORMULA?

Methods:

	cell:GetInteger()
	cell:GetDouble() (resp.)

seem to work only when cell:Type() == cell.INT (or cell.DOUBLE resp.).

But how do I obtain integer or double value when cell:Type() == cell.FORMULA?

Best regards,

Lukas
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org