I tried with {$MODE Delphi} but there is no change. Using TP mode makes no sense, IMHO DOS is dead.
I am fully aware, that I can add an extra counter or use another type of loop, and yet I see no reason for this limitation, so I wonder if it is not a bug.
Does anyone have an idea if there is such a limitation in Delphi?
Elmug, my idea is to remove repeating values for an array/ string grid, etc, I just gave a simpler example.