Issue 116948 - Basic: IsMissing not correct when calling sub with parameter names
Summary: Basic: IsMissing not correct when calling sub with parameter names
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: DEV300m98
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 08:49 UTC by daniel.rentz
Modified: 2017-05-20 10:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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 "issues@openoffice.apache.org".