https://bugs.freedesktop.org/show_bug.cgi?id=76642

--- Comment #2 from Terrence Enger <[email protected]> ---
Diego,

I know little about LibreOffice Basic, but the behaviour you cite
seems quite reasonable to me, give that the language includes the
IsMissing function.  You can handle an omitted parameter like this:

    sub one ( optional optStringParm as String )
        msgbox "optStringParm upon entry: " & optStringParm
        msgbox "IsMissing(optStringParam: " & IsMissing(optStringParm)
        if IsMissing(optStringParm)  then
            optStringParm = "my default value"
            msgbox "optStringParm after assignment: " & optStringParm
        end if
        msgbox "IsMissing(optStringParam at exit: " & IsMissing(optStringParm)
    end sub 'one


If this solves your problem, you can close this report NOTABUG.


BTW, bugzilla always sends emails to the submitter of the bug, even 
without and explicit cc.

Terry.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to