To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=64317
                  Issue #:|64317
                  Summary:|Support For Multi Dimentioned arrays uno-> basic
                Component:|framework
                  Version:|OOo 2.0.2
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|ENHANCEMENT
                 Priority:|P3
             Subcomponent:|scripting
              Assigned to:|npower
              Reported by:|npower





------- Additional comments from [EMAIL PROTECTED] Wed Apr 12 02:46:06 -0700 
2006 -------
Currently when arrays are transfered/translated from uno to basic those arrays
become arrays of arrays. The is no possibility to indicate that it would be
preferebale to translate the uno array to a representitive multi dimention 
array.

e.g in UNO there is no such thing a multi-dimensional array, if a user wishes to
represent such a thing then this is done by creating an array of arrays

e.g. consider the following matrix ( 2 dim array )

1  2  3  4
5  6  7  8 
9  10 11 12

a c++ implementation of such a structure would have to represent the matrix as
an array of arrays ( where each array is of equal length )

e.g.
array[0] 1,2,3,4
array[1] 5,6,7,8
array[2] 9,10,11,12

a possible uno representation would be a sequence<sequence<short>>

currently when such an object is passed to basic it is translated into an array
of arrays

e.g 
Dim a() as short
a() = AnUnoObject.methodThatReturnsUNOArrayOfArray() 

' where a(0) is itself an array
' "     a(1) "    "     "    "
' "     a(2) "    "     "    " etc.

but in basic multi dimension array ARE supported and sometimes the desired
result of AnUnoObject.methodThatReturnsUNOArrayOfArray() would be a
mult-dimentioned array NOT an array of arrays. The problem is there is no way to
specify this.

It would be useful to be able to specify a new type to wrap the returned array
that additionally provides information regarding the desired representation of
that array in the scripting language. To support that basic would then need to
be modified to understand the new type and interpret the extra information in
order to perform the desired translation

---------------------------------------------------------------------
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