" />
 手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp实现取得数组中的最大值的代码
asp实现取得数组中的最大值的代码
摘要:cint(max)thenmax=num(ii)response.write"num="&num(ii)&",max="&max&""nex...

<%

'******************************

'函数:GetMax(str)

'参数:str,待处理的数字数组,以,分隔多了数字

'作者:阿里西西

'日期:2007/7/12

'描述:取得数组中的最大值

'示例:<%=GetMax("360,120,5,600,32")%>

'******************************

functionGetMax(str)

num=split(str,",")

max=num(0)

forii=0toubound(num)

ifcint(num(ii))>cint(max)thenmax=num(ii)

response.write"num="&num(ii)&",max="&max&"<br/>"

next

getmax=max

endfunction

%>

【asp实现取得数组中的最大值的代码】相关文章:

asp完整登陆代码

如何截取asp后台登陆密码的代码

在asp中通过vbs类实现rsa加密与解密的代码

asp 在线人数统计代码

asp复制文件夹代码

在asp中通过getrows实现数据库记录分页的一段代码

实现ASP程序执行时间统计类的代码

asp获取当前URL代码

一些值得一看的代码asp

asp实现批量录入数据的实现

精品推荐
分类导航