WHILE/UNTIL clause in FOR statement when FOR variable is involved
issueid=408 09-06-2013 18:15
thinBasic author
Number of reported issues by ErosOlmi: 36
WHILE/UNTIL clause in FOR statement when FOR variable is involved
When using WHILE/UNTIL in FOR clause, if FOR variable is involved into the test, seems there is a bug

Related to this: http://www.thinbasic.com/community/p...hp?issueid=404

When using WHILE/UNTIL in FOR clause, if FOR variable is involved into the test, seems there is a bug and variable is incremented/decremented after the test

Evidence:
Uses "console"

Dim A(10) As Long
Dim I     As Long


A(1) = 1,2,0,4,5,6,7,8,9,10


For I = 1 To UBound(a) While A(i) <> 0
  PrintL i, A(i)
Next


WaitKey
Should report 1 1, 2 2
but instead 1 1, 2 2, 3 0
Issue Details
Issue Number 408
Project thinBasic
Category Core engine (thinCore.dll)
Status Fixed
Priority 1 - Highest
Affected Version 1.9.6
Fixed Version 1.9.7
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




09-06-2013 18:40
thinBasic author
Fixed.

+ Reply