Issue 116948

Summary: Basic: IsMissing not correct when calling sub with parameter names
Product: General Reporter: daniel.rentz
Component: scriptingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, rb.henschel
Version: DEV300m98   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description daniel.rentz 2011-02-14 08:49:50 UTC
Calling "Main" in the following Basic-Code should result in a message box
showing the text "p2=2". OOo shows "p1= , p2=2" instead. => p1 does not get the
"IsMissing" flag when Test is called with parameter "p2:=2". Using the call
"Test , 2" works as expected.

Sub Main
    Test p2:=2
End Sub

Sub Test(Optional p1, Optional p2)
    If Not IsMissing(p1) Then a = "p1=" & p1
    If Not IsMissing(p2) Then a = a & " p2=" & p2
    MsgBox a
End Sub
Comment 1 Regina Henschel 2015-02-26 18:13:31 UTC
I think, that it is the same internal problem as bug 23763.
Comment 2 Marcus 2017-05-20 10:44:59 UTC
Reset the assignee to the default "".