ASP RemoveAll 方法
การเรียกใช้และการประกาศ
RemoveAll 方法จาก Object Dictionary ลบทั้งหมด key/item ของ
การใช้งาน:
DictionaryObject.RemoveAll
ตัวอย่าง
<% dim d,a,i set d=Server.CreateObject("Scripting.Dictionary") d.Add "c","China" d.Add "i","Italy" d.Add "s","Sweden" d.RemoveAll Response.Write("<p>Key values:</p>") a=d.Keys for i=0 to d.Count-1 Response.Write(a(i)) Response.Write("<br />") next set d=nothing %>
ออกมาที่:
ค่าทางฝั่งข้างใน: (nothing)