Syntax
Public Function ArrayMinimum(ary As Variant, start As Integer, Optional Count As Integer = -1) As Integer
Description
This function returns the minimum number of elements in a numeric array.
Parameters
Key | Description |
ary | Array to get the minimum number, value of type Variant. |
start | Index to start checking minimum number,value of type Integer. |
Count | Number of search elements, by default searches all array, value of type Integer. |
Return value
Return minimum number in given array, in case of failure, returns -1.
Sample
Public Sub main () Dim Arr CopyHigh 0, 10, 20, Arr Dim Result Result = ArrayMinimum (Arr,1,-1) AlertMessage (Result) Returns the Minimum number at Arr End sub
See Also