Yes, I guess that is what I had to figure out that I had to have the special /doevents in my main, but you verified for me the correct way of doing it. I should also end all my declares with a value such as NULL, and I guess that it doesn't cause problems if that is the correct way of doing it...