<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 - array declared with own type can't redim"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=124008">124008</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>array declared with own type can't redim
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.2.1.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>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lobug@glasir.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=149895" name="attach_149895" title="example for redim with and without Perserve-flag and own types">attachment 149895</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=149895&action=edit" title="example for redim with and without Perserve-flag and own types">[details]</a></span>
example for redim with and without Perserve-flag and own types
It‘s not longer possible to ReDim arrays declared with own types
but with the flag „preserve“ it still works.
Example:
Type myType
sType As String
aValue As Variant
iNo As Integer
iRange As Integer
oColour As Object
End Type
Sub Test
Dim aType(10) As myType
ReDim aType(20) As myType
print Str(uBound(aType)) 'result: 10
ReDim Preserve aType(20) As myType
print Str(uBound(aType)) 'result: 20
End Sub</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>