To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=47877
                  Issue #:|47877
                  Summary:|The LBound and UBound functions fail with empty
                          |arrays from DimArray and Array()
                Component:|framework
                  Version:|OOo 1.1.4
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|scripting
              Assigned to:|ab
              Reported by:|ab





------- Additional comments from [EMAIL PROTECTED] Thu Apr 21 04:32:58 -0700 
2005 -------
This is the OOo 1.1.5 version of #18989. Reasons for a fix in OOo 1.1.5:

1. It makes sense that arrays returned by DimArray() and Array() are 
consistant to arrays created with the Dim command. To achive this these 
commands have to return an array containing one empty dimension (instead 
of no dimension as before) when called without parameters.

2. In the scope of expanding the conversion functionality "Basic Arrays 
<-> UNO sequences" (#33795) I've built in a regression concerning the
conversion of arrays without any dimension. These array are not conver-
ted to an empty sequence any more. With changing DimArray() and Array()
this regression becomes irrelevant because arrays without any dimension
then cannot exist any more in Basic at all.

No risk of breaking existing code. Already works in OOo 2.0.


Test macro:

sub main
        a = DimArray()
        print lbound( a() ), ubound( a() )
        
        a = Array()
        print lbound( a() ), ubound( a() )
end sub

Should each display 0, -1

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to