Hi Marina,

On Monday, 2010-08-09 15:21:39 +0200, Marina Plakalovic wrote:

> I have added new function by following the tutorial:
> http://wiki.services.openoffice.org/wiki/Calc/Implementation/Spreadsheet_Functions
> 
> This works fine when the arguments of the function are scalar, but if I want
> to pass the range of values to the function, additional steps are needed.

You need to differentiate according to the data type that is on the
stack, e.g. svDoubleRef for a range reference. See for example
ScInterpreter::ScMax() how that is handled in a simple case. For your
implementation also ScInterpreter::ScCountIf() and
ScInterpreter::ScSumIf() may be of interest.

  Eike

-- 
 OOo Calc core developer. Number formatter stricken i18n transpositionizer.
 Signature key 0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
 --
 Please don't send mail to the old e...@sun.com account that I used for mailing
 lists, it phased out. Use eike.rat...@oracle.com instead. Thanks.

Attachment: pgpFNaaUSjveN.pgp
Description: PGP signature

Reply via email to