Issue 75443 - Support multiple array indices
Summary: Support multiple array indices
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: scripting (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: joerg.skottke
QA Contact: Unknown
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-16 08:34 UTC by ab
Modified: 2013-02-24 21:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Basic code to test the issues contained in the file name (2.26 KB, text/plain)
2008-06-10 11:37 UTC, ab
no flags Details
Output file from Visual Basic (201 bytes, text/plain)
2008-06-10 11:39 UTC, ab
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ab 2007-03-16 08:34:20 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.
Comment 1 ab 2007-03-23 07:57:15 UTC
STARTED
Comment 2 ab 2007-07-25 10:57:26 UTC
-> 2.4
Comment 3 ab 2007-11-14 14:40:40 UTC
Added to cws ab42
Comment 4 ab 2008-01-10 16:11:49 UTC
Not enough time left for 2.4 -> 3.0
Comment 5 ab 2008-06-06 08:44:02 UTC
FIXED
Comment 6 ab 2008-06-10 11:37:37 UTC
Created attachment 54357 [details]
Basic code to test the issues contained in the file name
Comment 7 ab 2008-06-10 11:39:41 UTC
Created attachment 54358 [details]
Output file from Visual Basic
Comment 8 ab 2008-06-10 11:55:04 UTC
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.

Comment 9 joerg.skottke 2008-06-12 09:25:31 UTC
verified
Comment 10 joerg.skottke 2008-10-13 08:54:59 UTC
Closed