[Libreoffice-bugs] [Bug 85371] Redim with function name
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Aug 11 17:26:36 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=85371
--- Comment #8 from ge.huber at gmx.net ---
(In reply to ge.huber from comment #2)
> There seem to be more problems with using the function name as a variable
> inside the function. It can not be used as the loop variable in a For ...
> Next loop.
Hopefully correct version, that is the one, which shows the bug clearly.
Sub Main
Print "foob is " & foob() 'works
Print "fooc is " & fooc() 'fails
End Sub
'This surrogate works
Function foob() As long
foob = 1
LoopLable:
Print "foob is now " & foob
foob = foob + 1
If foob < 4 Then Goto LoopLable
End Function
'While the For ... Next doesn't
Function fooc() As long
For fooc = 1 To 3 'error occurs here
Print "fooc is now " & fooc
Next fooc
End Function
--
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/20190811/5ea9291f/attachment.html>
More information about the Libreoffice-bugs
mailing list