02-10-2011 02:03 PM
@cory K wrote:
Correct and non-abusive use of both a sequence structure AND a local variable!
Didn't think I'd live to see the day...
I strongly disagree! 😮
02-10-2011 02:43 PM - edited 02-10-2011 02:44 PM
@altenbach wrote:
@cory K wrote:
Correct and non-abusive use of both a sequence structure AND a local variable!
Didn't think I'd live to see the day...
I strongly disagree! 😮
The sequence is not needed at all. Here's the same functionality while avoiding the sequence structure.
Still no race condition.

(The "notes" are simply wired across in the false case.)
(Of course the other issues still apply, so I don't recommend this code. We don't need to replace array elements and update the items unless there is a change. Right? Go with the event structure as suggested above.)
02-10-2011 02:46 PM
Many thanks to everyone, these are valid approaches to my particular problem.
02-10-2011 02:52 PM
In all fairness, I did note "Also, using an event structure could make this cleaner" ![]()
02-10-2011 05:37 PM
Thanks for being a party-pooper Christian! ![]()
I kind of had a feeling someone was gonna jump on that.