A
A
Anton2014-05-14 13:06:41
Delphi
Anton, 2014-05-14 13:06:41

Why is the For loop (Delphi) not working properly?

During the next debugging, all the bumps were pointed to the For loop, which assigns the variable the first value that was not the one that was specified first, and not even from the range.
Variable j should be set to 0 at the beginning, not 4
I'm attaching a screenshot of the debugger+WatchList's code
67fc09b4ba62486181eef33249162e67.png
How to make the loop work correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2014-05-14
@jezzit

It's a Delphi optimizer - and watch is wrong.
In the formula, everything will be calculated correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question