To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=83143 Issue #|83143 Summary|OOBasic: ReDim on array of user-defined type doesn't w |ork 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:03:18 +0000 2007 ------- When trying to use ReDim on array of user-defined type, OOBasic shows error: inadmissible value or data type, index out of defined range. A workaround is to use ReDim Preserve instead. But it shouldn't be needed when there is no need to preserve the array contents. Example code: Type myType s as String i as Integer End Type Sub Main Dim a() as myType ReDim a(5) as myType ' error: inadmissible value or data type, index out of End Sub If instead of "Dim a()..." change to "Dim a(0)...", no error will be shown, but the ReDim will not work either. Also reported in ooforums: http://www.oooforum.org/forum/viewtopic.phtml?t=64888 --------------------------------------------------------------------- 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]
