キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Event structure/State machine

解決済み
解決策を見る

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? 

0 件の賞賛
メッセージ1/5
4,302件の閲覧回数
解決策
受理者 Strokes

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

メッセージ2/5
4,295件の閲覧回数

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;))

メッセージ3/5
4,291件の閲覧回数

Thanks mike, I think the using the refnum will open some doors for me.

 

 

0 件の賞賛
メッセージ4/5
4,287件の閲覧回数

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

メッセージ5/5
3,911件の閲覧回数