05-06-2011 02:09 AM
Here's the scenario.
I'm using user controlled buttons in an event structure to control a state machine. Currently I have a different state corresponding to each button. However, 4 or 5 of these buttons could ideally correspond to the same state which is what I would like to happen... Each of these 4 or 5 buttons causes data to stream and the results are stored in an array, but the data streamed is different for each button! Therefore, if each of these 4 or 5 buttons caused the same state to occur how could I decipher which button was pushed? Ideally I'd have 4 or 5 different arrays once all the buttons are pushed out of the same state.
Is there anyway I can achieve this?
Solved! Go to Solution.
05-06-2011 02:40 AM
Hi Strokes,
you have access to the element refnum inside of the event case. With the Ref you can simply get the name or every other proptery of the control to differentiate them.
Mike
05-06-2011 02:42 AM
Hi,
Also you can try this example. Not sure whether this is ideal or not.But it works:).
Regards,
Nitzz
(Kudos are always Welcome, Mark as a solution if it is the one;))
05-06-2011 02:46 AM
Thanks mike, I think the using the refnum will open some doors for me.
01-24-2013 11:47 PM
have a good day, was working on a program that combines state machines and events, it went up in another forum topic, yet need to improve but I hope they can serve