[Libreoffice-bugs] [Bug 111732] New: Basic Function returning an array - only first value is displayed in spreadsheet

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 12 16:14:17 UTC 2017


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: libreoffice-bugs at lists.freedesktop.org
          Reporter: nib70776 at sjuaq.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170812/393eb1bb/attachment.html>


More information about the Libreoffice-bugs mailing list