ASP Dictionary.Keys方法用於返回Dictionary對象中所有鍵的數組。
用法:
DictionaryObject.Keys
示例代碼:下麵的代碼演示了ASP Keys方法。
ASP
<%dim d,a,iset d=Server.CreateObject("Scripting.Dictionary")d.Add "m","mango"d.Add "e","Elephant"d.Add "n","Nagaland" Response.Write("<p>Key values:</p>")a=d.Keysfor i=0 to d.Count-1 Response.Write(a(i)) Response.Write("<br>")next set d=nothing%>
輸出:
Key values: m e n
相關用法
- ASP Flush用法及代碼示例
- ASP End用法及代碼示例
- ASP BinaryRead用法及代碼示例
- ASP BinaryWrite用法及代碼示例
- ASP Clear用法及代碼示例
- ASP AppendToLog用法及代碼示例
- ASP AddHeader用法及代碼示例
- ASP Contents.Remove用法及代碼示例
- ASP Server.MapPath用法及代碼示例
- ASP Server.Execute用法及代碼示例
- ASP Server.Transfer()用法及代碼示例
- ASP Server.HTMLEncode()用法及代碼示例
- ASP CreateFolder()用法及代碼示例
- ASP BuildPath用法及代碼示例
- ASP GetParentFolderName用法及代碼示例
- ASP GetFile用法及代碼示例
注:本文由純淨天空篩選整理自ManasChhabra2大神的英文原創作品 ASP Dictionary.Keys Method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。