Hi
Yes you have to put the event-structure into a while loop. You also should place a control into its corresponding event-frame.
To react on the events, you can have another while loop with a case structure inside.
Have a look at the attachement. It's the producer-consumer design-pattern. You also can create this over the dialog which appears if you click "New..." in the menu.
In the event-structure, if a event occurs, a string is put into a queue. In the second while loop the string is dequeued and linked to a case-structure.
Instead of the strings, you also can create a custom control containing an enumeration (declared as strict type def). If you link this to a case-structure, the structure recognises the elements.
Hope this helps.
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------