https://bugs.documentfoundation.org/show_bug.cgi?id=85371
--- Comment #8 from [email protected] ---
(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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs