Thanks for your reply. Actually, I did start out with that as an example, which maybe I should have stayed with. However, I still have the problem of not being able to update the variable continuously, because I need MainLoop to manage the GUI.
Desert coder