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@lists.freedesktop.org
          Reporter: lo...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to