It's 5:30AM and I am trying to meet a deadline here. The lack of sleep or pure stupidity made me write code like this

If (nQuan<>0) Begin // a very big if block...
...
...
Loop

The code compiled, and ran into an infinite loop once it hit the above part of the code during runtime. I am really hoping that the compiler would catch something like that...

Frank Cheng