Bug 70882 - FormulaResultType return VALUE for cells with formula result #DIV/0! or #NAME?
Summary: FormulaResultType return VALUE for cells with formula result #DIV/0! or #NAME?
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version: 3.5.0 Beta0
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-26 05:52 UTC by mindaugas.rucys
Modified: 2013-11-09 00:56 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
spreadsheet with mentioned macro and formulas (8.66 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-10-26 05:52 UTC, mindaugas.rucys
Details

Description mindaugas.rucys 2013-10-26 05:52:18 UTC
Created attachment 88141 [details]
spreadsheet with mentioned macro and formulas

Formula in A1 "=0/0" -> result #DIV/0!
Formula in B1 "=nonexistingsheet!A0" -> result #NAME?
Formula in C1 "=sums(A2:A3)" -> result #NAME?

Basic macro:

Sub Main
	sheet = thiscomponent.sheets.getbyindex(0)
	msgbox sheet.getcellbyposition(0,0).formularesulttype
	msgbox sheet.getcellbyposition(1,0).formularesulttype
	msgbox sheet.getcellbyposition(2,0).formularesulttype
End Sub

All mesageboxes return 1 (VALUE) instead of 4 (ERROR)
Comment 1 Joel Madero 2013-11-09 00:56:01 UTC
Thank you for reporting this issue! I have been able to confirm the issue on:
Version 3.5.0.beta0
Platform: Ubuntu 13.04 x64
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
As I've been able to confirm this problem on an earlier release I am changing the version number as version is the earliest version that we can confirm the bug, we use comments to say that the bug exists in newer versions as well.

NOTE: Noel - I have no clue what should be returned by formularesulttype and the documentation isn't terribly helpful - I tested with a number, a =1 and then with the document provided and it basically always shows 1. Documentation says it should return a long so, not sure if this is a bug or behaving as expected but I can confirm the behavior so marking as NEW

Marking as:

New (confirmed)
Normal
Medium

Keywords - 

Whiteboard Status -

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
LibreOffice is powered by a team of volunteers, every bug is confirmed (triaged) by human beings who mostly give their time for free. We invite you to join our triaging by checking out this link:
https://wiki.documentfoundation.org/QA/BugTriage

There are also other ways to get involved including with marketing, UX, documentation, and of course developing -  http://www.libreoffice.org/get-help/mailing-lists/. 

Lastly, good bug reports help tremendously in making the process go smoother, please always provide reproducible steps (even if it seems easy) and attach any and all relevant material


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.