[Libreoffice-bugs] [Bug 124008] New: array declared with own type can't redim
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 11 21:12:00 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=124008
Bug ID: 124008
Summary: array declared with own type can't redim
Product: LibreOffice
Version: 6.2.1.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: lobug at glasir.de
Created attachment 149895
--> https://bugs.documentfoundation.org/attachment.cgi?id=149895&action=edit
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
--
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/20190311/fe839547/attachment.html>
More information about the Libreoffice-bugs
mailing list