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

            Bug ID: 147262
           Summary: CallByName() argument names does not match that of VBA
           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:
Basic function argument names can be used either by position either by name.
CallByName second argument name should be 'ProcName' instead of 'ProcedureName'

- VBA doc:
https://docs.microsoft.com/en-us/office/vba/language/reference/user-interface-help/callbyname-function
- libO Basic function signatures:
https://opengrok.libreoffice.org/xref/core/basic/source/runtime/stdobj.cxx


Steps to Reproduce:
Consider the following code:

Sub Main
        Const vbGet = 2, vbLet = 4, vbMethod = 1, vbSet = 8
        dim c As New Collection : c.Add(100, "first") : c.Add(101)
        MsgBox "collection count is "& CallByName(c, "Count", vbGet)
        MsgBox "collection count is "& CallByName(object:=c,
ProcedureName:="Count", CallType:=vbGet)
End Sub


Actual Results:
MsgBox statements both display 2

Expected Results:
MsgBox 2nd statement should use 'ProcName' instead of 'ProcedureName'


Reproducible: Always


User Profile Reset: No



Additional Info:
See https://bugs.documentfoundation.org/show_bug.cgi?id=141474 for more
information.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to