The most common operation with arrays is indexing them. That is, specifying an index in the square brackets following the array name, as in values[count] or grid[row,column].
Raptor provides the following function for working with one-dimensional arrays.
Length_Of
Length_Of is a function that takes one argument, a one-dimensional array without any index or square brackets after the name. It returns the highest index (which is also the number of elements) defined for the array. Length_Of can also be used to determine the length of a string expression.
Example
For the following array, Length_Of(Scores) will return 4.
Scores
1 |
2 |
3 |
4 |
87 |
93 |
77 |
82 |