Μέθοδος RemoveAll του ASP
Ορισμός και χρήση
Η μέθοδος RemoveAll διαγράφει όλες τις key/item από το αντικείμενο Dictionary.
Γλώσσα:
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>Κλειδιά τιμές:</p>") a=οι κλειδιά του d for i=0 to d.Count-1 Response.Write(a(i)) Response.Write("<br />") next set d=nothing %>
输出:
Key values: (nothing)