ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







METHOD:  Dictionary.Remove

object.Remove (keyvalue)

The Remove method is used to remove a single key/item pair from the specified Dictionary object.

Code:
<%
dim guitars
set guitars=CreateObject("Scripting.Dictionary")
guitars.Add "e", "Epiphone"
guitars.Add "f", "Fender"
guitars.Add "g", "Gibson"
guitars.Add "h", "Harmony"
guitars.Remove("g")

%>

Output:
"Epiphone"
"Fender"
"Harmony"