To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58749
Issue #:|58749
Summary:|com.sun.star.sheet.FormulaResult.ERROR does not match
Component:|api
Version:|OOo 2.0
Platform:|All
URL:|
OS/Version:|Unix, X11
Status:|UNCONFIRMED
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|DEFECT
Priority:|P3
Subcomponent:|definition
Assigned to:|jsc
Reported by:|villeroy
------- Additional comments from [EMAIL PROTECTED] Thu Dec 1 10:22:12 -0800
2005 -------
Please run following basic code:
REM ***** BASIC *****
sub test_FormulaResult_ERROR
oDoc = StarDesktop.loadComponentFromURL( "private:factory/scalc", "_blank", 0,
Array() )
oCell = oDoc.getSheets.getByIndex(0).getCellByPosition(0,0)
oCell.setFormula("=1/0")
printResult oCell
end sub
sub printResult(oCell)
lContentType = oCell.getType
lResultType = oCell.FormulaResultType
sFml = oCell.FormulaLocal
if lContentType = com.sun.star.table.CellContentType.FORMULA then
sResult = sFml &" returning "
if lResultType = com.sun.star.sheet.FormulaResult.ERROR then
sResult = sResult & "an error"
else
sResult = sResult & "NO error"
endif
elseif lContentType = com.sun.star.table.CellContentType.TEXT then
sResult = "Text: "& oCell.getString
elseif lContentType = com.sun.star.table.CellContentType.VALUE then
sResult = "Number: "& oCell.getValue
endif
msgbox sResult
end sub
---------------------------------------------------------------------
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]