https://bugs.freedesktop.org/show_bug.cgi?id=85371

            Bug ID: 85371
           Summary: Redim with function name
           Product: LibreOffice
           Version: 4.2.6.3 release
          Hardware: x86 (IA32)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 108304
  --> https://bugs.freedesktop.org/attachment.cgi?id=108304&action=edit
Nothing new here. Textfile with the code from the description.

Trying to Redim a field inside a function with the function name fails with an
"Reading Error. Property is read only"-error. Run this code, to see the error:

Sub Main
Dim FieldOfLongs() As Long
Dim l As Long
l = foo(FieldOfLongs) 
End Sub

Function foo(FieldOfLongs() As Long) As Long 
Print "foo ist actually " & foo
Dim Zero As Long
Redim FieldOfLongs(Zero) As Long 'Redim works
Redim FieldOfLongs(foo) As Long 'Redim fails with error
End Function

The expected behaviour is, that the function name should behave just like any
other variable within the function. 

Problem arises on 
Lubuntu 14.04
with
Version: 4.2.6.3
Build-ID: 420m0(Build:3)

The error actually says "Lesefehler. Eigenschaft ist schreibgeschützt" in my
Germann version of LO.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to