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

ACOPY( )

No equivalent

ADEL( )

delete( )

ADIR( )

dir( )

ADIREXT( )

dirExt( )

AELEMENT( )

element( )

AFIELDS( )

fields( )

AFILL( )

fill( )

AGROW( )

grow( )

AINS( )

insert( )

ALEN( )

For number of elements, check array’s size property

ARESIZE( )

resize( )

ASCAN( )

scan( )

ASORT( )

sort( )

ASUBSCRIPT( )

subscript( )

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.