Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>max()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MAX()
 Return the larger of two numeric or date values
------------------------------------------------------------------------------
 Syntax

     MAX(<nExp1>, <nExp2>) --> nLarger
     MAX(<dExp1>, <dExp2>) --> dLarger

 Arguments

     <nExp1> and <nExp2> are the numeric values to compare.

     <dExp1> and <dExp2> are the date values to compare.

 Returns

     MAX() returns the larger of the two arguments.  The value returned is
     the same type as the arguments.

 Description

     MAX() is a numeric and a date function that ensures the value of an
     expression is larger than a specified minimum.  The inverse of MAX() is
     MIN(), which returns the lesser of two numeric or date values.

 Examples

     .  In these examples MAX() returns the greater of two numeric
        values:

        ? MAX(1, 2)                     // Result: 2
        ? MAX(2, 1)                     // Result: 2

     .  In these examples MAX() compares date values:

        ? DATE()                        // Result: 09/01/90
        ? MAX(DATE(), DATE() + 30)      // Result: 10/01/90
        ? MAX(DATE(), CTOD(""))         // Result: 09/01/90

 Files:  Library is CLIPPER.LIB.

See Also: MIN()

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