Metode RemoveAll ASP
Definisi dan penggunaan
Metode RemoveAll menghapus semua key/item dari objek Dictionary.
Tata bahaso:
DictionaryObject.RemoveAll
Contoh
<% 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>Nilai kunci:</p>") a=d.Keys for i=0 to d.Count-1 Response.Write(a(i)) Response.Write("<br />") next set d=nothing %>
Output:
Nilai kunci: (tidak ada)