[Libreoffice-bugs] [Bug 143707] New: Macro optional parameter is incorrectly initialized to the default integer value with Option VBASupport 1

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 3 16:24:11 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143707

            Bug ID: 143707
           Summary: Macro optional parameter is incorrectly initialized to
                    the default integer value with Option VBASupport 1
           Product: LibreOffice
           Version: 7.1.5.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: sokol at comec92.ru

Description:
Macro optional parameter is incorrectly initialized to the default integer
value with Option VBASupport 1

Steps to Reproduce:
Run Macro Test.

Option Explicit 
Option VbaSupport 1

Sub Mysub(Optional ByVal arg1 As Variant=1) 
  Msgbox arg1
End Sub

Sub Test
  Mysub 
End Sub  


Actual Results:
Shows 1%

Expected Results:
MUST show 1


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210803/815565c6/attachment.htm>


More information about the Libreoffice-bugs mailing list