Your vi works perfectly :
you are disabling the menu items wich correspond to the elements of the 1D array :
-if the array is empty, no element is disabled;
-if the array contains 1 element, for instance = 3, the forth (3+1) menu item will be disabled. If the array element equal zero, then the first menu item will be disabled;
- if the array contains 2 elements, then two corresponding menu items will be disabled, and so on...
Chilly Charly (aka CC)