Retrieves the minimum of values in an array.

AMin(@aArray [, nDimension])

Parameters

@aArray

The array by reference on which the compution should be executed.

nDimension (optional)

default = 1

The dimension of the array on which the computation should be executed.
If you pass 0 in this parameter the computation is executed on all elements of the array.

Return Value

The minimum of the values contained in the passed in array or .NULL. if all rows were .NULL.

Remarks

Valid types of the values in the array: numeric (N), currency (Y), date (D) or datetime (T).
All values in the array (dimension) on which the computation takes place must be of the same type,
otherwise "invalid arguments" error is risen.

See Also

Reference

AAverage
AMax
ASum