(See my attachment for my code.)
When B1 button is pressed and then run some routine inside while loop,
I would like to receive some event signal from other button(here cancel or any ohter method) to stop the while loop.
In attachment, please note the event of cancel button's value change is used to do something.
In a normal event structure, can I realize this?
Or Do I have to change the design pattern?