08-11-2009 05:13 AM
Hello,
In my application, there will appear a dialog when an error occurs. I hope when pressing the "OK" button on the dialog can notify the main loop to stop, please advise how todo this.
Thanks
David
08-11-2009 05:48 AM
Hi David,
you can place a case structure after your dialog. If the result is "true" then you can generate an User Event.
Mike
08-11-2009 05:52 AM - edited 08-11-2009 05:52 AM
Use a dialog button.use a case strucure
08-13-2009 03:02 AM
My idea as follows:
hope can stop the loop by the user defined event, but this event never be triggered. Please give an advise.
08-16-2009 03:24 AM
Hi David,
if you ask the user before the user event, then you can simply use a case structure.
To get the event, you have to generate the event. Use the "Generate User Event" function for it. You should create the event in any case. Decide only if you generate it or not. Don't forget to use the "Destroy User Event" function.
Mike
08-19-2009 12:16 AM
Hello Mike,
As your hint I make such a block diagram:
But it cannot find any defined data label I've defined from the event structure's terminal. Please give a support.
David
08-19-2009 01:46 AM
Hi DavidLee,
see the two possibilities to solve your problem.
Mike
08-22-2009 04:53 AM
Hi Mike,
That is what I need. Thankyou very much.
David