Re: [api-dev] XCell methods getValue and getError

2009-02-13 Thread Bernard Marcelly
Message de Petteri Larjos date 2009-02-13 15:34 : I am using UNO C++ API and need help with XCell interface (again). How I can set cell value to empty? I tried xCell-setFormula(OUString()) but xCell-getType() does not return CellContentType_EMPTY after that. Any ideas? I also need set cell

Re: [api-dev] XCell methods getValue and getError

2008-12-18 Thread Oliver Brinzing
Hi Daniel, please forgive me for asking but i changed the code to: final CellContentType type = xCell.getType(); if (type == CellContentType.FORMULA) { final Object obj = getPropertyValue(xCell, FormulaResultType); [...] } my debugger tells me obj is a CellContentType: obj

Re: [api-dev] XCell methods getValue and getError

2008-12-18 Thread Daniel Rentz
Oliver Brinzing schrieb: Hi Daniel, please forgive me for asking but i changed the code to: Forgive me for believing the API documentation and not checking the implementation. :-) You are right, and Calc is wrong. Sigh. Daniel

Re: [api-dev] XCell methods getValue and getError

2008-12-17 Thread Daniel Rentz
Hello, Petteri Larjos schrieb: Question 2 com.sun.star.table.xcell method getError() returns long value. How do I get error string which corresponds with getError() value? The corresponding error text is application dependent. There is currently no way to get it from the error code. Maybe