您现在的位置是:网站首页> 编程资料编程资料
asp数字或者字符排序函数代码_应用技巧_
2023-05-25
395人已围观
简介 asp数字或者字符排序函数代码_应用技巧_
复制代码 代码如下:
'排序
Function Sort1(ary)
Dim KeepChecking,I,FirstValue,SecondValue
KeepChecking = TRUE
Do Until KeepChecking = FALSE
KeepChecking = FALSE
For I = 0 to UBound(ary)
If I = UBound(ary) Then Exit For
If ary(I) > ary(I+1) Then
FirstValue = ary(I)
SecondValue = ary(I+1)
ary(I) = SecondValue
ary(I+1) = FirstValue
KeepChecking = TRUE
End If
Next
Loop
Sort1 = ary
End Function
Dim arr
arr = Array("a","c","b")
arr = Sort1(arr)
For i=0 to ubound(arr)
Response.Write(arr(i)&"
")
Next
相关内容
- ASP常见错误详解及解决方案小结 推荐第1/2页_应用技巧_
- ASP批量生成静态页面的写法(批量生成技巧iframe)_应用技巧_
- rs.open sql,conn,1,1与rs.open sql,conn,1.3还有rs.open sql,conn,3,2区别_应用技巧_
- 用asp获取微软安全更新列表的代码 小偷程序_小偷/采集_
- asp 输出换行的详细说明[原创]_应用技巧_
- asp中的rs.open与conn.execute的区别说明_应用技巧_
- javascript增加干扰数据实现简单加密效果_应用技巧_
- asp下通过HTTP_USER_AGENT判断用户是从手机上访问,还是电脑IE上访问_应用技巧_
- ASP读取日期单日期自动补零函数代码_应用技巧_
- asp中获取当前页面的地址与参数的函数代码_应用技巧_
