https://bugs.documentfoundation.org/show_bug.cgi?id=111732
Bug ID: 111732
Summary: Basic Function returning an array - only first value
is displayed in spreadsheet
Product: LibreOffice
Version: 5.3.5.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Description:
I have the following Basic function:
Function test(a as double, b as double, c as double, d as double) as variant
test = Array(a*20,b*2,c*2,d*2)
end Function
If I enter in cells B1: 1, B2: 2, B3: 3, B4: 4 and in Cells C1:C4 the function
=TEST(B4,B5,B6,B7) as array function ({=TEST(B4,B5,B6,B7}) only the first
value, i.e. 20 is displayed in Cells C1, C2, C3 and C4.
Correct behaviour would be: C1: 20, C2: 4, C3: 6, C4: 8.
The preview in the function wizard is correct and shows in the field Result:
{20,4,6,8}.
Steps to Reproduce:
1. Write the basic function in the libre office basic editor (Module 1):
Function test(a as double, b as double, c as double, d as double) as variant
test = Array(a*20,b*2,c*2,d*2)
end Function
2. Fill in the numbers 1, 2, 3 , 4 in cells B1, B2, B3, and B4
3. Enter the function =TEST(B4,B5,B6,B7) as array function
({=TEST(B4,B5,B6,B7}) in Cells C1:C4.
4. 20 is displayed in Cells C1, C2, C3 and C4.
5. Correct Behaviour would be: C1: 20, C2: 4, C3: 6, C4: 8
6. The preview in the function wizard is correct and shows in the field Result:
{20,4,6,8}.
Actual Results:
see above
Expected Results:
see above
Reproducible: Always
User Profile Reset: No
Additional Info:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101
Firefox/52.0
--
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