ASP Keys 方法
asp keys 方法

keys 方法返回一個(gè)包含 dictionary 對(duì)象中所有 key 的數(shù)組。
語法
dictionaryobject.keys
實(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.keys
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
key values:
n
i
s
dim d,a,i
set d=server.createobject("scripting.dictionary")
d.add "n","norway"
d.add "i","italy"
d.add "s","sweden"
response.write("
key values:
")a=d.keys
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
key values:
n
i
s

相關(guān)文章
- ASP 表單
- ASP Response 對(duì)象
- ASP Request 對(duì)象
- ASP File 對(duì)象
- ASP AtEndOfStream 屬性
- ASP OpenAsTextStream 方法
- ASP Keys 方法
- ASP Cookies 集合
- ASP CacheControl 屬性
- ASP ExpiresAbsolute 屬性
- ASP Pics 屬性
- ASP ServerVariables 集合
- ASP TotalBytes 屬性
- ASP CodePage 屬性
- ASP Contents.Remove 方法
- ASP FolderExists 方法
- ASP GetBaseName 方法
- ASP GetDriveName 方法
- ASP GetExtensionName 方法
- ASP GetParentFolderName 方法