ASP Items 方法
asp items 方法

items 方法返回一個(gè)包含 dictionary 對象中的所有項(xiàng)目的數(shù)組。
語法
dictionaryobject.items
實(shí)例
<%
dim d,a,i
set d=server.createobject("scripting.dictionary")
d.add "n","norway"
d.add "i","italy"
d.add "s","sweden"
response.write("
a=d.items
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
item values:
norway
italy
sweden
dim d,a,i
set d=server.createobject("scripting.dictionary")
d.add "n","norway"
d.add "i","italy"
d.add "s","sweden"
response.write("
item values:
")a=d.items
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
item values:
norway
italy
sweden

相關(guān)文章
- ASP 程序
- ASP ASPError 對象
- ASP File 對象
- ASP Folder 對象
- ASP ADO
- ASP Line 屬性
- ASP Skip 方法
- ASP Attributes 屬性
- ASP Name 屬性
- ASP ParentFolder 屬性
- ASP OpenAsTextStream 方法
- ASP IsRootFolder 屬性
- ASP ExpiresAbsolute 屬性
- ASP Status 屬性
- ASP Application_OnStart 和 Application_OnEnd 事件
- ASP LCID 屬性
- ASP CreateObject 方法
- ASP DriveExists 方法
- ASP GetDriveName 方法
- ASP MoveFile 方法