CFLib.org – Common Function Library Project

ListMax(list)

Last updated December 23, 2002

author

Joshua Miller

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));
}
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson