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

            Bug ID: 150422
           Summary: You can "call" a scalar variable as function; an error
                    should be shown instead
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Consider the code:

Sub TestCallingVariable
  Dim Month
  MsgBox Month(Now)
End Sub

Running this gives an empty message box.

This is a simplified user error case, where the built-in Month [1] was
redefined locally as a variable. The problem here is that there is no error
suggesting that Month(Now) makes no sense: Month local variable is neither a
function, nor an array.

[1]
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03030104.html?DbPAR=BASIC

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

Reply via email to