ListMax(list)
Last updated December 23, 2002
Version: 1 | Requires: CF5 | Library: StrLib
Description:
ListMax returns the greatest value in a listt.
Return Values:
Returns a number.
Example:
<cfoutput>#ListMax("10,11,98,103,2,4,8,178,902,1904")#</cfoutput>
Parameters:
Name | Description | Required |
---|---|---|
list | List to use. | Yes |
Full UDF Source:
/**
* ListMax returns the greatest value in a list.
*
* @param list List to use. (Required)
* @return Returns a number.
* @author Joshua Miller (josh@joshuasmiller.com)
* @version 1, December 23, 2002
*/
function ListMax(list){
var delim = ",";
if(arrayLen(arguments) gte 2) delim = arguments[2];
return arrayMax(listToArray(list,delim));
}
Search CFLib.org
Latest Additions
Raymond Camden added
QueryDeleteRows
November 04, 2017
Leigh added
nullPad
May 11, 2016
Raymond Camden added
stripHTML
May 10, 2016
Kevin Cotton added
date2ExcelDate
May 05, 2016
Raymond Camden added
CapFirst
April 25, 2016