|
Post by Kelly Ethridge on Nov 2, 2006 9:21:38 GMT -5
The minimum or maximum value can be retrieved from a list of values using the MinIn and MaxIn methods.
These methods accept an array or collection. The collection can be the VB Collection object or any of the collection classes in VBCorLib.
Dim Values() As Long Values = NewLongs(1, 2, 3, 4)
Dim High As Long High = MaxIn(Values)
Dim Low As Long Low = MinIn(Values)
Also, lists of objects that implement the IComparable interface can be used with these method.
|
|