Knowledgebase:
ArrayMinimum
Posted by Mohammad Rahhal, Last modified by Angham Al-Banawien on 08 November 2016 02:03 PM

Syntax

Public Function ArrayMinimum(ary As Variant, start As IntegerOptional Count As Integer = -1) As Integer

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


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions