To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=103859 Issue #|103859 Summary|Error with vba set with strongly typed variables Component|scripting Version|OOO310m14 Platform|All URL| OS/Version|All Status|NEW Status whiteboard| Keywords| Resolution| Issue type|PATCH Priority|P3 Subcomponent|code Assigned to|ab Reported by|npower
------- Additional comments from [email protected] Tue Jul 28 14:02:17 +0000 2009 ------- Early on with the vba stuff when doing a set on an object e.g. Dim obj as Something set obj = obj2 we check if obj2's type is equal/compatible with obj2's type 'Something' This mimics VBA's runtime behaviour ( yes, it does seem a bit over the top but we came across a couple of examples where this 'feature' is used by user macros ) However with automation objects and especially with objects returned from an automation object the heuristics for comparing the type or the source and target objects fails. This is due to a) we don't have any handling for automation objects b) even if we did automation objects ( that are returned as a result on methods called on automation objects ) have no type information associated with them. So... confusing, yes, of course. An example is better to explain things, followed then by a patch to fix this ( please Andreas could you get someone who knows windows/com code to make sure I do things right here ( especially mem mgt, I am not sure if I handle that right 'cause the msdn documentation seems, well not to tell me enough about that ) --------------------------------------------------------------------- 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]
