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

            Bug ID: 151901
           Summary: Typename() Vartype() argument names do 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.
TypeName() Vartype() argument name should be 'VarName' instead of 'Var'

- VBA doc:
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/typename-function
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/vartype-function
- libO Basic function signatures:
https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/typename-function

Steps to Reproduce:
Consider the following code:

Sub Main
        Const _Array=8192, _Variant=12
        Dim table(_3 To 5)
        Msgbox "TypeName(table): "&TypeName(var:=table) &Chr(13)& _
                "VarType(table)="&Vartype(var:=table) _
                ,,"Array of Variant values"
End Sub



Actual Results:
Typename() Vartype() functions return respectively 'Variant()' and 8204 that is
_Array+_Variant

Expected Results:
Typename and Vartype should use 'VarName' instead of 'Var'


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