Built-in functions / Built-in functions |
Returns the number of rows entered during a INPUT ARRAY statement.
ARR_COUNT() RETURNING result INTEGER
Use ARR_COUNT() to determine the number of program records that are currently stored in a static program array used by the INPUT ARRAY instruction.
This function is typically called inside or after INPUT ARRAY or DISPLAY ARRAY statement.
ARR_COUNT() returns a positive integer, corresponding to the index of the furthest record within the static program array that the user accessed. Not all the rows counted by ARR_COUNT() necessarily contain data (for example, if the user presses the Down key more times than there are rows of data.
This function is not required when using dynamic arrays. In such case, the total number of rows in defined by the array.getLength() method after the dialog, or by the ui.Dialog.getArrayLength() method during the dialog execution.