https://bugs.documentfoundation.org/show_bug.cgi?id=148466
Bug ID: 148466
Summary: Basic Choose() function errors are trapped
inconsistently
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
Missing or omitted expressions arguments - of Choose() method - are not
properly caught.
Steps to Reproduce:
Consider the following routine:
Sub demo
Print Choose(),
Print Choose(5)
MsgBox Choose(2, "a",, 15) ' Should raise Error #13 as in VBA
End Sub
Actual Results:
1. 1st Print statement raises error #5
2. 2nd Print statement raises error #13
3. MsgBox statement displays "Error 448"
Expected Results:
Using VBA, results are different:
1. is rejected by VBA compiler
2. raises error #94
3. raises error #13
Reproducible: Always
User Profile Reset: No
Additional Info:
VBA Choose() function doc:
https://docs.microsoft.com/en-us/office/vba/Language/Reference/User-Interface-Help/choose-function
--
You are receiving this mail because:
You are the assignee for the bug.