<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Using '#' symbol as comment prevent to assign integer variables"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=112114">112114</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Using '#' symbol as comment prevent to assign integer variables
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.0.3 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>oleyansen@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>