Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi,

I am working on bug 88576, regarding IFERROR and IFNA not giving expected results when not all 
mandatory arguments are given.
On checking their behaviour in various cases, I discovered that IFERROR, IFNA and IF do not handle 
empty arguments as they should be.
With empty argument I mean e.g. -IFERROR(something;) of IF(statement;;argument).
With IFERROR and IFNA these situation should return an empty value to be compatible with Excel.
With IF, the behaviour is described in ODFF1.2.

My question is, where should this behaviour best be put in the code?
In class FormulaCompiler, e.g. in FormulaCompiler::Factor(), in ScInterpreter::Interpret(), in the 
functions themselves (ScInterpreter::ScIf() and ScInterpreter::ScIfError() or somewhere else?
And as these functions are jump functions, how best to access/modify the stack or FormulaToken?

Winfried


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.