https://bugs.documentfoundation.org/show_bug.cgi?id=130583
Bug ID: 130583
Summary: switch() gives "wrong data type" error on reordering
value-result pairs
Product: LibreOffice
Version: 6.4.0.3 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 157787
--> https://bugs.documentfoundation.org/attachment.cgi?id=157787&action=edit
a minimal example: value-result pairs ordered and disordered
I ran into a strange behaviour, when switch() gives "wrong data type" error on
reordering value-result pairs. I've found out that the value-result pairs shall
be ordered ascending in the switch function not to receive an error. Otherwise,
if the value-results pairs are disordered, some values are not recognised and
pairs with their result.
It gives hard time to order the values and not to receive a #value error, but
if it would be required, it shall be documented, too:
file:///C:/Program%20Files/LibreOffice/help/en-US/text/scalc/01/func_switch.html?DbPAR=CALC#bm_id571556244875552
Personally, I think the behaviour is a bug.
Version: 6.4.0.3 (x64)
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 8; OS: Windows 10.0 Build 18362; UI render: default; VCL: win;
Locale: cs-CZ (cs_CZ); UI-Language: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs