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

             Bug #: 54912
           Summary: BASIC: Array function forces the lower boundary for
                    arrays as 0  in spite of option base 1
    Classification: Unclassified
           Product: LibreOffice
           Version: 3.6.2.1 rc
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: BASIC
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hello

Steps to reproduce:

Run the code:

option Base 1
Sub ExampleOptionBase

Dim sVar(2) As String
msgbox LBound(sVar())
sVar = array(1,2,3)
msgbox LBound(sVar())
end sub

Expected results:  the two msgbox should display 1
Actual results: first displays 1, second displays 0

You need to use then the zero element: 
msgbox sVar(0)

This bug is old (already in OOo)
Platform: Version 3.6.2.1 (Build ID: ba822cc) & Windows 7 64bits
Regards
Pierre-Yves

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- 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