[Libreoffice-bugs] [Bug 136367] New: For Each loop does not work anymore in LibreOffice 7.0

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Sep 1 12:58:19 UTC 2020


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

            Bug ID: 136367
           Summary: For Each loop does not work anymore in LibreOffice 7.0
           Product: LibreOffice
           Version: 7.0.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: roland65 at free.fr

The following simple basic macro does not work anymore in LibreOffice 7.0:

Sub Test

Dim a(2) as Integer

a(0) = 10
a(1) = 20
a(2) = 30

For Each n In a()
  msgbox n
Next n

End Sub

The macro should successively display the numbers 10, 20 and 30. Instead, an
error message is given (at first iteration):

'Inadmissible value or data type. Data type mismatch.'

The macro works as expected in LibreOffice 6.4.5.2.

Tested in Ubuntu 20.04.1 LTS, LibreOffice 7.0.0.3 obtained from
www.libreoffice.org.

100% reproducible.

Please note that this problem breaks the TexMaths extension (on Linux and
Windows systems).

-- 
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/20200901/a1f44c7f/attachment.htm>


More information about the Libreoffice-bugs mailing list