CorMath: MaxIn

MaxIn

Returns the maximum value from a list of values.



 Public Function MaxIn(
	  ByRef List As Variant ) As Variant

Parameters

List
[ByRef] Variant. The list of values to continue searching for the maximum.

Return Values

Variant -  The maximum value found.

Remarks

The list can be an Array, Collection, or ICollection object.

The values must be of the same type for the comparison to be performed. If X is an IComparable, then the object is used to test for the maximum value.

See Also

Project CorLib Overview

Class CorMath Overview