Occasionally, especially in some GUI cases, one wants to wait a short while before continuing. For example:
Do something
Show a message
Wait 3 seconds
Show another message
Wait 3 seconds
Clear messages
In this case, it's messages, but it's not limited to that.
What is the preferred method om implementing such a wait. Sure, I could use a timer, but that would either lead to a very awkward partitioning of the code (especially if large piles of variables are needed both before and after the wait) or to the use of a DoEvents-loop, which will drain the battery.
So, what is the proper way of doing this?