Issue 92528 - Localization of Addin function ERFC is broken
Summary: Localization of Addin function ERFC is broken
Status: CLOSED DUPLICATE of issue 92530
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: DEV300m24
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 17:43 UTC by Regina Henschel
Modified: 2008-09-30 15:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
macro with German and English functions name (10.00 KB, application/vnd.oasis.opendocument.spreadsheet)
2008-08-06 17:47 UTC, Regina Henschel
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2008-08-06 17:43:19 UTC
Try to access the ERFC-function with a macro, for example

function MYERFC (byval z) as double
DIM oFunktion as variant
oFunktion = createUnoService("com.sun.star.sheet.FunctionAccess")
Dim aArgumente(0) As Variant
dim erfcresult as double
aArgumente(0)=z
erfcresult = oFunktion.callFunction( "ERFC", aArgumente() )
MYERFC=erfcresult
end function

This works fine in an English UI. Now open the same document in a German UI. You
will get an error "comm.sun.star.container.NoSuchElementException".

For the normal functions is works as expected, that the function in the
statement is always English. For the Addin function 'Erfc' the statement needs
the localized name.

I consider this a bug, because the behavior is different and it makes it
impossible to distribute such macros.
Comment 1 Regina Henschel 2008-08-06 17:47:35 UTC
Created attachment 55607 [details]
macro with German and English functions name
Comment 2 kay.ramme 2008-08-26 09:29:23 UTC
Andreas, please take care of this ...

Thanks

   Kay

Comment 3 ab 2008-08-28 13:08:53 UTC
This is no scripting problem. Basic only catches an Excepting thrown 
by the callFunction method of  service "css.sheet.FunctionAccess"

Component scripting -> Spreadsheet
ab->er: Please have a look
Comment 4 ooo 2008-09-30 15:41:51 UTC
Duplicate.

*** This issue has been marked as a duplicate of 92530 ***
Comment 5 ooo 2008-09-30 15:42:15 UTC
Closing dup.