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

            Bug ID: 112114
           Summary: Using '#' symbol as comment prevent to assign integer
                    variables
           Product: LibreOffice
           Version: 5.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Seems in LibreOffice Basic editor starting from version 5.4.0.3 symbol #
considered as comment line.
However this symbol used in BASIC code as integer variable mark.

So previously worked construction like that
#iFile = Freefile()
suddenly stop to work in my BASIC code.

Is it possible to not use # as comment line symbol so my code will continue to
work?

Steps to Reproduce:
1.Open LibreOffice Basic editor (Tools - Macros - Organize Macros - LibreOffice
Basic)
2. Enter simple test program
name = "/tmp/file.txt"
#iFile = FreeFile()
Open name for Output Access Write As #iFile
Print #iFile, "TEST"
Close #iFile
3. Run program

Actual Results:  
Error Window containing text 
BASIC runtime error.
Invalid file name or file number
appear

Expected Results:
Test program should work


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/59.0.3071.115 Safari/537.36

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to