01-12-2013 12:26 AM - edited 01-12-2013 12:27 AM
Hi guys
This is the idea of the program
I am using a 1D array that has 8 Boolean elements named "attendance", and another 1D array of numeric control each element has a certain number for example (9,8,7,6,5,4,3,2) and there is a numeric control to enable the user to enter a number, if the entered number matches one of the numbers in the array, the Boolean of that number goes on....
The shift register is used to maintain the data of the array so that if one of the Boolean goes on it does not go off again
The problem is that, the comparison happens only to the first 5 elements
The question why the comparison does not happen to the whole array
Thank you
01-12-2013 02:58 AM - edited 01-12-2013 03:01 AM
(apparently continued from here)
The boolean array you use to initialize the shift register has only five elements. It needs to have 8. You cannot replace something that does not exist. Instead of using a diagram constant, use "initialzie array" with a 8 wired to the size.
(Also mind your representations. Your number array is DBL while your numeric control is I64 for some reason. Pick he same representation for both)