CorMath: Max |
Returns the maximum of two values.
Public Function Max( ByRef x As Variant, ByRef y As Variant ) As Variant
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.