Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > asp入门教程

asp入门教程:取得数组中的最大值的方法

来源:中文源码网    浏览:254 次    日期:2024-05-03 07:53:49
【下载文档:  asp入门教程:取得数组中的最大值的方法.txt 】


asp取得数组中的最大值的方法
如何取得数组中的最大值(由71port_80端口提供) 该函数的作用是取得一组数组中最大的一个值,非常实用且精典,值得收藏! 复制代码 代码如下:snum="345,231,56,786,1100,356,1200,300,685,111,134,765" function GetMax(str) num=split(str,",") max=num(0) for ii=0 to ubound(num) if cint(num(ii))>cint(max) then max=num(ii) response.Write "num="&num(ii)&",max="&max&"
" next GetMax=max end function response.Write "数组"&snum&"
最大值:"&GetMax(snum)

相关内容