This is nuts! I'm totally stumped. I have a variable which Delphi seems to sometimes think equals zero, when it definitely doesn't. If I output the value to a listbox on the screen, the value comes out correctly, and then from then on in the code (when debugging), its non-zero. If I don't output it to the screen it thinks it is zero!!! Aaaaarrrrgghh! What is going on?!