Harbour Reference Guide

 

MAX()

Returns the maximum of two numbers or dates.

Syntax

MAX(<xValue>,<xValue1>) --> <xMax>

Arguments

<xValue> Any date or numeric value.

<xValue1> Any date or numeric value (same type as <xValue>).

Returns

<xMax> The larger numeric (or later date) value.

Description

This function returns the larger of the two passed espressions. If <xValue> and <xValue1> are numeric data types, the value returned by this function will be a numeric data type as well and will be the larger of the two numbers passed to it. If <xValue> and <xValue1> are date data types, the return value will be a date data type as well. It will be the later of the two dates passed to it.
Examples
      ? MAX(214514214,6251242142)
      ? MAX(CTOD('11/11/2000'),CTOD('21/06/2014')
Status

Ready

Compliance

This function is Ca-Clipper compliant.

Platforms

All

Files

Library is rtl

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30