To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=83145 Issue #|83145 Summary|OOBasic: assignment of user-defined type problem Component|api Version|OOo 2.3 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|spdfo
------- Additional comments from [EMAIL PROTECTED] Tue Oct 30 23:08:36 +0000 2007 ------- When defining array of user-defined types, it is not possible to assign one element of the array to another. The same code works in VBA. Workaround is field-by-field assignment. Example code: Type myType s as String i as Integer End Type Sub Main Dim a(3) as myType Dim b as myType a(1).s = "aaa" a(1).i = 111 a(2).s = "bbb" a(2).i = 222 a(1) = a(2) ' does NOTHING in ooo MsgBox a(1).s ' ooo prints 'aaa', VBA 'bbb' MsgBox a(1).i ' ooo prints 111 VBA 222 a(1).s = a(2).s 'works a(1).i = a(2).i 'works MsgBox a(1).s MsgBox a(1).i End Sub Also reported in ooforum.org: http://www.oooforum.org/forum/viewtopic.phtml?t=64891 --------------------------------------------------------------------- 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]
