@Bombbooo wrote:
@ Simon
Thank you very much. I tried to move the local inside the event structure. It worked. However I have to create too many data main stream's locals to wire in each event case. It looks a bit weird but it worked.
Thanks
I'm not sure you got the right takeaway from this exercise.
Do you understand why Simon's solution worked?
Simon also said:
Better yet would be to avoid local variables wherever possible. This is just general advice and not something I can make much more tangible without knowing the details of how you want your application to behave.
I think you should do a little more thinking about dataflow and see if you can come up with a solution that doesn't involve a lot of locals.