SQL contains a number of aggregate functions that can do things like select the largest or smallest number from a set of values. This could be handy in the programming language itself.
ASP
function max(arrNumbers)dim resultresult = arrNumbers(0)for each i in arrNumbersif i > result thenresult = iend ifnextmax = resultend functionfunction min(arrNumbers)dim resultresult = arrNumbers(0)for each i in arrNumbersif i < result thenresult = iend ifnextmin = resultend function
No comments:
Post a Comment