Array functions
dBASE Plus supports a number of array functions, most of which have equivalent methods in the Array class. These functions are:
Function |
Array class method |
No equivalent | |
For number of elements, check array’s size property | |
Like the equivalent methods, these functions operate on one- and two-dimensional arrays only. ACOPY( ) and ALEN( ) are the only functions which have no direct equivalents.
The use of those functions is similar to the equivalent method. For a given method like:
aExample.fill( 0 ) // Fill array with zeros
the equivalent function uses the reference to the array as its first parameter and all other parameters (if any) following it:
afill( aExample, 0 )
The parameters following the array name in the function are identical to the parameters to the equivalent method, and the functions return the same values as the methods.