>>>ASSERT is not good because it moves the focus on the assert's message.
>>>A bad design :(
>>
>>Just as good as recommending to people to use messagebox() to debug stuff... both will move focus off the current form and thus cause a bunch of events.
>
>I added wait window timeout 2 there yesterday and was able to find out the problem.
Because a wait window never shifts focus, so it can be used for debugging of stuff which happens in activate/deactivate/gotfocus/lostfocus code (which usually involves a refresh of something, and generally increases the fun of debugging :).