Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

AMIN( aArray[, nStart[, nStop[, nIndex ]]] )

Purpose

Find minimum element in an array.

Arguments

     aArray -- array to read

     nStart -- if passed, element to start at, else 1

     nStop -- if passed, element to stop at, else last one

     nIndex -- pass by reference to obtain the index of the
                   smallest element.

Setup

All elements are the same data type.

Example

     LOCAL x, index := 0, _array := { 10, 40, 30, 35 }
     x := AMIN( _array, 1, 4, @index )
     ? x, index                       && Returns 10, 1

Returns

The minimum of the elements of the array in the range specified.

Side Effects

If passed by reference, nIndex will point to the element of aArray
containing the minimum value.

Artful Calls

None.

Source File

AA_AMIN.PRG

See Also: AAVG() AMAX() ASUM()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson