Question:

Strange Loop counter problem.

by  |  earlier

0 LIKES UnLike

Hi all,   I was looking at some code with a co-worker, and saw something very strange.  He has 3 nested for loops, while debugging, his inner most loop was doing a downto instead a to (for index := 3 downto 1 do instead of for index := 0 to 2 do, to be more specific.  I tried renaming the loop variable (used to be simply x now it is index) no effect.  I put a show message(IntToStr(Index)) and it works, but we cant have the showmessage there, so I tried a Sleep(1000), nothing.  We have rebuilt the entire project several times, and nothing.  Can anyone give me a suggestion here?

 Tags:

   Report
Please Login to view 4 answers to this question

Question Stats

Latest activity: earlier.
This question has 4 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions