[Libreoffice-bugs] [Bug 112114] New: Using '#' symbol as comment prevent to assign integer variables

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 30 17:06:43 UTC 2017


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: libreoffice-bugs at lists.freedesktop.org
          Reporter: oleyansen at gmail.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170830/6eba9984/attachment.html>


More information about the Libreoffice-bugs mailing list