Apache OpenOffice (AOO) Bugzilla – Issue 75443
Support multiple array indices
Last modified: 2013-02-24 21:00:39 UTC
If an array has another array as element, VB allows to use more than one array index to access elements of this sub array: Sub Main Dim a(0) Dim b(0) b(0) = "b" a(0) = b MsgBox a(0)(0) End Sub This should also be supported by OOo Basic. This problem may be related to i43838 that also deals with an array indexing problem.
STARTED
-> 2.4
Added to cws ab42
Not enough time left for 2.4 -> 3.0
FIXED
Created attachment 54357 [details] Basic code to test the issues contained in the file name
Created attachment 54358 [details] Output file from Visual Basic
ab->jsk: Please verify You can create your own dump file by uncommenting the dump call at the end of main() and changing the file name in the sub dump(). The OOo output will differ in two lines: - ln 3: b(0)(0) = 43 instead of 42 in vba. This is caused by a different copying mechanism for arrays (by ref instead of by value in VBA), but this problem is not handled here - ln 8: Only existing in OOo output as the corresponding code is not valid in VBA. In general wrong code being accepted is no problem, so this also is not handled here.
verified
Closed