The situation:
There is a user interface that provides the user with an array control.
The array control provides the user only one or a limited number of elements.
The user must use the scroll bars or the index control to select the correct element that he wants to modify.
The problem:
The user can scroll to a position beyond the last available array element and enter data. This increases the size of the array as expected, but not as desired in the given situation.
After the user finishes entering, the program must check the size of the array and reduce it again.
The proposed solution:
There should be a "max. array index" property of the array control. It should prevent the user from scrolling to a position beyond this maximum element index and/or editing such a position. It should also prevent adding elements via the right-click menu when the maximum number of elements has already been reached.
Extensions:
There could also be a minimum property that prevents the user from deleting array elements so that the total number falls below the minimum.
Notes:
The proposed solution should only affect the user's input capabilities. It should not change the size of the array if it was specified programmatically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Duplicate of https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Fixed-Size-For-Array-Control/idi-p/1221936