# FT Array Functions

``` FT_AADDITION()   Add elements unique of source array to target array
FT_AAVG()        Average numeric values in an array
FT_ADESSORT()    Sort an array in descending order
FT_AEMAXLEN()    Find longest element within an array
FT_AEMINLEN()    Find shortest element within an array
FT_AMEDIAN()     Find middle value in array, or average of two middle values
FT_ANOMATCHES()  Find the number of array elements meeting a condition
FT_AREDIT()      2 dimensional array editing function using TBrowse
FT_ASUM()        Sum the elements of an array
FT_RESTARR()     Restore a Clipper array from a disc file
FT_SAVEARR()     Save Clipper array to a disc file.```

# FT_AEMINLEN

```FT_AEMINLEN()
Find shortest element within an array

Syntax

FT_AEMINLEN( <aArray> [, <nDimension> [, <nStart> [, <nCount> ] ] ] )
-> nMinlen

Arguments

<aArray> is the array containing the elements to be measured.

<nDimension> is the array dimension to be measured,
defaults to first dimension.

<nStart> is the starting array element to include,
defaults to first array element.

<nCount> is the number of array elements to process from
from <nStart>, defaults to remaining elements
in array.

Returns

The length of the shortest size element of an array.

Description

This function will measure each element of an array
dimension and return the shortest element.

Examples

FT_AEMINLEN(aArray)       // Measure the 1st dimension of an Array

FT_AEMINLEN(aArray,2)     // Measure the 2nd dimension of an Array

FT_AEMINLEN(aArray,2,,9)  // Measure Elements 1-9 of 2nd dimension

FT_AEMINLEN(aArray,3,5,9) // Measure Elements 5-9 of 3rd dimension

FT_AEMINLEN(aArray,3,5)   // Measure Elements 5 to end of 3rd dimension

Source: AEMINLEN.PRG

Author: Ralph Oliver,  TRANSCOM SYSTEMS```

# FT_AEMAXLEN

``` FT_AEMAXLEN()
Find longest element within an array

Syntax

FT_AEMAXLEN( <aArray> [, <nDimension> [, <nStart> [, <nCount> ] ] ] ) ;
-> nMaxlen

Arguments

<aArray> is the array containing the elements to be measured.

<nDimension> is the array dimension to be measured,
defaults to first dimension.

<nStart> is the starting array element to include,
defaults to first array element.

<nCount> is the number of array elements to process from
from <nStart>, defaults to remaining elements
in array.

Returns

The length of the longest size element of an array.

Description

This function will measure each element of an array
dimension and return the longest element.

Examples

FT_AEMAXLEN(aArray)       // Measure the 1st dimension of an Array

FT_AEMAXLEN(aArray,2)     // Measure the 2nd dimension of an Array

FT_AEMAXLEN(aArray,2,,9)  // Measure Elements 1-9 of the
2nd dimension or subarray

FT_AEMAXLEN(aArray,3,5,9) // Measure Elements 5-9 of the
3rd dimension or subarray

FT_AEMAXLEN(aArray,3,5)   // Measure Elements 5 to last in the
3rd dimension or subarray

Source: AEMAXLEN.PRG

Author: Ralph Oliver,  TRANSCOM SYSTEMS```