Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>max()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MAX()


Syntax:     MAX(<expN1>/<expD1>, <expN2>/<expD2>)

Purpose:    To determine the larger of two numeric or date expressions.

Arguments:  <exp1> is the first numeric or date expression to be
            compared.

            <exp2> is the second numeric or date expression to be
            compared.

            Note that both arguments must be the same type.

Returns:    A numeric or date value.

            MAX() always returns the larger of the two arguments.  This
            result is not affected by an empty or null argument.

Usage:      MAX() is useful when you want to insure that the value of an
            expression is larger than a specified minimum.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   ? MAX(1, 2)                      && Result: 2
   ? MAX(2, 1)                      && Result: 2
   *
   ? DATE()                         && Result: 09/01/87
   ? MAX(DATE(), DATE() + 30)       && Result: 10/01/87
   ? MAX(DATE(), CTOD(""))          && Result: 09/01/87


See Also: MIN()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson