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

--- Comment #3 from Rafael Lima <[email protected]> ---
I'm not sure I'm doing something wrong here, but I'm getting 1 as result with
AND without "Option VBASupport 1"

Sub test
  Dim i As Long, j As Long, k As Long
  k=10
  For i=1 To k
    k=1
    j=i
  Next i
  Msgbox j
End Sub

The code above is the example from bug 150458.

If both behave the same, we should keep as is and simply explain that it is
possible to change the upper bound of the loop.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to