https://bugs.documentfoundation.org/show_bug.cgi?id=131818
Bug ID: 131818
Summary: BASIC: Declaring an array parameter as optional should
not be possible with option VBASupport
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: minor
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
In LO BasicBasic with option Compatible/VBASupport it is possible to declare an
array parameter as optional:
Function TestOptArray(Optional A() As Integer, Optional B() As Variant)
However, in MSO it is not possible to declare an array parameter as optional.
The above code snippet leads to a syntax error in MSO, whereas the following
works:
Function TestOptArray(A() As Integer, B() As Variant)
At least with option VBASupport LO should throw a syntax error.
Actual Results:
Expected Results:
Reproducible: Always
User Profile Reset: No
Additional Info:
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs