最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ASP中的ArrayList类[数组常用函数]
时间:2022-07-02 22:35:31 编辑:袖梨 来源:一聚教程网
ASP中的ArrayList类[数组常用函数]
使用方法如下:
程序代码
<%
dim arr : set arr=new ArrayList
arr.add "a" : arr.add "b" : arr.add "c"
Response.Write arr.count & "
"
for i=0 to arr.count-1
Response.Write arr.item(i) & "
"
next
set arr=nothing
%>
Class ArrayList
Private m_array()
Private m_count
Private Sub Class_Initialize()
Redim m_array(0)
m_count=0
End Sub
Private Sub Class_Terminate()
Redim m_array(0)
m_count=0
End Sub
Public Property Get Count()
Count=m_count
End Property
Public Property Get Item(index)
Item=m_array(index)
End Property
Public Function Add(arrItem)
Redim Preserve m_array(m_count)
m_array(m_count)=arrItem
m_count=m_count+1
End Function
End Class
%>
相关文章
- grep文本搜索与正则表达式完整代码示例实用指南 10-16
- AI漫剧伪装直男1‑24集无雾版夸克网盘资源免费分享 10-15
- AI漫剧玉僧入尘1-68集无雾无删版夸克网盘资源免费分享 10-15
- AI漫剧拿握疯太子32集正片+4分钟专属小剧场夸克网盘资源分享 10-15
- AI漫剧权臣是我心上人1-2季未删减版夸克网盘资源分享 10-15
- AI漫剧高三爱情故事1-45集无删无雾版夸克网盘资源分享 10-15