[Libreoffice-bugs] [Bug 133811] New: The program does not continue with 'Dim' or 'ReDim' following 'If' in one line statement.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jun 9 07:32:17 UTC 2020


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

            Bug ID: 133811
           Summary: The program does not continue with 'Dim' or 'ReDim'
                    following 'If' in one line statement.
           Product: LibreOffice
           Version: 6.2.8.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: nukool at gmail.com

Description:
Using 'If' in one line statement, 'Dim' and 'ReDim' subsequent statements next
to 'If' condition are not executed.

Steps to Reproduce:
1. Example code:

Option Explicit

Sub Test_IfIsNotClosed
    If False Then Dim i%
    i = 1
    MsgBox i
End Sub

Sub Test_IfIsClosed
    If False Then
        Dim j%
        j = 1
    Else
        Dim k%
        k = 2
    End If
    MsgBox k
End Sub 

2. Dim i% is not executed. 


Actual Results:
Dim i% is not executed. 

Expected Results:
Dim or ReDim should be executed.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.8.2
Build ID: f82ddfca21ebc1e222a662a32b25c0c9d20169ee
CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

-- 
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/20200609/f35318ed/attachment.htm>


More information about the Libreoffice-bugs mailing list