To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=68059 Issue #|68059 Summary|Basic Option Compatible + opt args bug Component|api Version|OOo 2.0.3 Platform|All URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|terrye
------- Additional comments from [EMAIL PROTECTED] Tue Aug 1 18:01:35 -0700 2006 ------- Options Compatible + Optional Arguments still don't work properly. (1) ParamArray is Still not supported (2) IsMissing gets confused if there arePositional Args past the one being tested - see attached code fragment. Calls 4 and 5 should give the same answer. Note that the Compiler barfs at the Function Definition (B=4 clause) if the option isn't set and CompatibilityMode(True) <or ... False> have no effect, which seems the intended functionality. //Terry Option Compatible Sub Main CompatibilityMode(True) x = AA() 'OK returns 11 x = AA(1) 'OK returns 9 x = AA(A:=1) 'OK returns 9 x = AA(,1) 'OK returns 5 x = AA(B:=1) 'WRONG IsMissing(a) doesn't work. Returns 2 x = AA(2,1) 'OK returns 4 x = AA(B:=1, A:=2) 'OK returns 4 End Sub Private Function AA(Optional ByVal A, Optional B=4) If isMissing(a) Then a = 3 EndIf AA = a+2*b End Function --------------------------------------------------------------------- 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]