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