The function fills an array with the specified value.
[in] Starting index. In such a case, specified AS_SERIES flag is ignored.
[in] Number of elements to fill.
[in] Value to fill the array with.
No return value.
When ArrayFill() function is called, normal indexation direction (from left to right) is always implied. It means that the change of the order of access to the array elements using ArraySetAsSeries() function is ignored.
A multidimensional array is shown as one-dimensional when processed by ArrayFill() function. For example, array is processed as array. Therefore, you may specify the initial element's index to be equal to 5 when working with this array. Thus, the call of ArrayFill(array, 5, 2, 3.14) for array fills array and array elements with 3.14.