>Sorry i didnt answer the question about the lost focus calls. They are used to trigger code that is in the lost focus action of the object. I'll post the lost focus code now.
Aagh! :-) That's worse than the first code for "understanding." Anyway, definitely go with the debugger. I assume you know how to use it in a basic way? Just check "debug info" on the Project Menu Info page, and run the app as in when you encounter your problem, see what line the code breaks on.
Then, unless it's very obvious what's wrong, next try the other debug method I described, SET STEP ON and walk through the code. Hover the mouse over the variables/objects/etc, and you'll see the values like tooltips. Make sure each one is what you expect it to be. Eventually you should either see something wrong before a crash, or at the spot of the crash. Most problems like this can be solved with the debugger. Good luck.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.