<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Basic Function returning an array - only first value is displayed in spreadsheet"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111732">111732</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Basic Function returning an array - only first value is displayed in spreadsheet
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nib70776@sjuaq.com
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>