To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=70700 Issue #|70700 Summary|Basic Mid instruction is changed by CompatibilityMode( |True) Component|scripting Version|OOo 2.0.4 Platform|PC URL| OS/Version|Windows XP Status|NEW Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|kr Reported by|bmarcelly
------- Additional comments from [EMAIL PROTECTED] Sun Oct 22 04:56:11 -0700 2006 ------- Run this macro: Sub Main dim test as string CompatibilityMode(True) test = "abcdefg" Mid(test, 3, 3, "Y") ' result should be : abYfg print test, "result is " & (test="abYfg") End Sub With version 2.0.4 the result is "abYdefg" With CompatibilityMode(False), or with version 1.1.5, result is "abYfg", consistent with Mid() specification in OOoBasic. In VBA Mid() instruction does not exist. It is only a function with 3 arguments. (VBA detects a syntax error if 4 arguments or if used as an instruction). If the idea is to use CompatibilityMode() to adapt to VBA syntax, there is a bug, and this is a very bad idea. Because CompatibilityMode() was introduced in version 1.1.1 to enforce Private declarations in OOoBasic, and programmers may already use it for this, and not for VBA compatibility. --------------------------------------------------------------------- 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]