This function returns the highest value in an array.
Parameter
a - An array, data type can be Number.
Return value
Returns a Number value.
Example
Maximum([ 22.5, 75.81, 236.47, 56.31, 235.78 ])This function is used to pick up the maximum value from the values referred to by the argument.
Parameter
a - Values of a DBField or a formula field.
Return value
The returned value type is dependent on the data type of the parameter. It may be Number, Currency, String, Date, Time, DateTime or Boolean.
Examples
Number x = Maximum(@dbfield)Date x = Maximum(@formula)Currency x = Maximum(@dbfield)Boolean x = Maximum(@formula)This function is used to pick up the maximum value from the values referred to by the first argument.
Parameters
Return value
The returned type is dependent on the data type of the first argument. It may be Number, Currency, String, Date, Time, DateTime or Boolean.
Examples
Time x = Maximum(@dbfield, @dbfield1)DateTime x = Maximum(@dbfield, @formula_groupby)String x = Maximum(@dbfield, @parameter_groupby)Date x = Maximum(@formula, @formula_groupby)Currency x = Maximum(@formula, @dbfield1)Currency x = Maximum(@formula, @parameter)Note: If a field is assigned to another variable, for example x, the variable x will lose the characteristic of representing a group of values. The following formula will then be treated as incorrect.
Number x = @dbfield;
Number y = Maximum(x); // system will prompt you that there is no such kind of function.