Description |
MAX (Magic xpa 2.x)
Returns the greatest value from a group of values with the same attributes.
|
Syntax:
|
MAX(value1,value2,...valuen)
|
Parameters:
|
value1: A number, string or logical value2: same attribute as value1 valuen: same attribute as value 1
|
Returns:
|
Largest value
|
Examples:
|
MAX(8,9.2,5,4) returns 9
MAX('ABC','ACD') returns 'ACD'
|
Note:
|
The number of parameters is limited to 30.
The display of the expanded expression in the Expression Editor will include ellipsis ('...') as the last parameter, to indicate a variable number of parameters.
|
See also:
|
MIN, IF
The Online and Rich Client Samples projects (program NM08 and RNM08)
|
|
|
---|