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

            Bug ID: 169983
           Summary: Cannot name a variable "output", but MS Office can
           Product: LibreOffice
           Version: 25.2.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
It's a syntax error to dim a variable with the name "output". Presumably this
is some kind of keyword; I am not familiar with VBA so I can't be sure.

However, Microsoft Office seems to accept it just fine, so for compatibility
LibreOffice should too.

Steps to Reproduce:
Write a VBA macro containing the line:

Dim output(1 to 10) as Variant

Click Run > Compile.

Actual Results:
A dialog pops up: "BASIC syntax error. Symbol expected." The Dim keyword on the
offending line is highlighted.

Expected Results:
"output" works as a variable name.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Aside: error handling and reporting is pretty bad here. When opening said Excel
file, the error also popped up in an infinite loop, and offered no way to see
where the error occurred. I had to use `killall soffice.bin` to get out of the
loop, open the document with macros disabled, and click Run > Compile on each
of the modules until I found the culprit.

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

Reply via email to