Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > asp函数/类库

asp数字或者字符排序函数代码

来源:中文源码网    浏览:192 次    日期:2024-04-23 11:12:51
【下载文档:  asp数字或者字符排序函数代码.txt 】


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

相关内容