> I am trying to figure out a way to do this, but have not been
> successful so far.
> 

To do this without events, you need another piece of state information. 
  Add a shift register to your while loop and initialize it to False. 
This will indicate whether the initialization has run in this session. 
Combine this information with the button information to control the 
execution of the case.  Obviously, the right shift register needs to be 
sent True when the initialization happens, and Current value otherwise. 
  Note that this is a very common approach, and when you find that you 
have several shift registers for various data, you might decide to 
combine them into a cluster and use fewer shift registers.  The choice 
is yours.

Greg McKaskle


Reply via email to