CorMath: Max

Max

Returns the maximum of two values.



 Public Function Max(
	  ByRef x As Variant,
	  ByRef y As Variant ) As Variant

Parameters

x
[ByRef] Variant. Value to test as potential max value.
y
[ByRef] Variant. Value to test as potential max value.

Return Values

Variant -  The max value.

Remarks

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.

If both values are equavalent then X is returned.

See Also

Project CorLib Overview

Class CorMath Overview