To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=91220 Issue #|91220 Summary|patch: allow string accessors to Basic array variables | which represent an UNO object Component|scripting Version|OOo 2.4.1 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|PATCH Priority|P3 Subcomponent|code Assigned to|ab Reported by|fs
------- Additional comments from [EMAIL PROTECTED] Mon Jun 30 20:15:10 +0000 2008 ------- In Basic, if a given variable contains a UNO object supporting the XIndexAccess interface, it is possible to write something like element = container( index ) where "container" is the UNO object supporting XIndexAccess, "index" an integer value, and "element" the element which is to be retrieved. It would be nice (and consistent to other scripting languages of competing products :) to also have a *name access* to UNO containers. That is, if an object supports XNameAccess, then the following should also be possible: element = container( "elementName" ) Currently, this doesn't work, instead the "elementName" is interpreted as integer value, being 0, so always the first container element is retrieved, without any warning/error (which could be considered a bug of its own). The attached patch implements the XNameAccess support. --------------------------------------------------------------------- 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]