10-23-2012 09:40 AM
But, I need a default case. Otherwise, the program wont run, right? the default case remains as i show in the picture?
10-23-2012 10:25 AM
Yes, you should have a default case. Given your problem, you should have 2 cases: "Default" and "1..4".
11-27-2012 07:05 AM
The problem is every time I press the button and remaind pressing it, the array will fill of the same value. For example, if I press the button 3, and if dont release, the program will fill the array of 3?
There are any way to send the element to array only when I press the button or only when I release?
11-27-2012 07:31 AM
You could compare the new value to the previous (store in a shift register). Then if they are different, store in your array.
11-27-2012 07:38 AM
but If I have one random sequence like 1 2 2 3, the program will only store only a two 1 2 3
11-27-2012 08:56 AM - edited 11-27-2012 08:58 AM
Yeah, your answer was totaly correct. I solved the problem...Thank you very much
12-21-2012 02:25 PM
So then mark Crossrulz's post as the solution rather than your message which definitely is not the solution. First you will need to go to the options menu to the upper right of your message to unmark it as the solution.
12-25-2012 04:55 AM
I though I was checked Crossrulz's last post. I change it. I choose first Crossrulz post as solution because that was the solution of my post question