Dark Programmer,
There is no reason your code should not work, unless your installment of DarkBasic is bugged. A fresh reinstall may solve this type of problem.
On the other hand, it seems as if the code you posted above was freshly typed up for this thread, and not just a paste of a copied section of the code within your editor. Therefore, your source code could me mistyped.
Also, check if there is a line of code before this piece of code which is ALWAYS switching start to equal 0. This is a common bug.
On a last note, you might want to show more of your code if you wish for more effective help. With only the code you have presented to us, we only have the ability to theorize or suggest on what the problem might be. Just a wise note.
+NanoBrain+