Posted by Mohammad Rahhal, Last modified by Laith Ghawi on 04 July 2019 10:41 AM


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


This function returns the minimum number of elements in a numeric array.


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. 


 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))
Not helpful

Comments (0)
Post a new comment
Full Name:
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