To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=90949
Issue #|90949
Summary|MID function unusable in libformula
Component|Database access
Version|OOo 2.4.0
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|SRB
Assigned to|dbaneedsconfirm
Reported by|cyhawk
------- Additional comments from [EMAIL PROTECTED] Sat Jun 21 13:09:36 +0000
2008 -------
The "MID" function looks is meant to work like this:
MID( "text", 2, 2 )
(And it would return "ex".)
But unfortunately there is a bug in MidFunctionDescription.java:
public Type getParameterType(final int position)
{
if(position == 1)
{
return TextType.TYPE;
}
return NumberType.GENERIC_NUMBER;
}
So the first parameter has to be a number and the second has to be text. This is
what happens if you mix 0-based and 1-based numbering in an application I guess.
Anyway I have no idea how to contact the libformula developers (if there are
such -- I have not even found a web page for it). Ocke, if you have some contact
info, please let me know. Otherwise it has to be patched in OOo (I see it
already has a few patches for building Java 1.2 compatible classes).
How to test this issue?
Create a text box with the following formula as data:
MID( 123456789, "3", 4 )
It will evaluate to "3456". However if the first parameter is not a number, or
the second one is not a string, you will get LibFormulaErrorValue{502}.
A workaround is to use LEFT and RIGHT instead until it is fixed.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]