La méthode RemoveAll retire toutes les paires clé/élément d'un objet Dictionary.
object.RemoveAll
L'espace réservé object correspond toujours au nom d'un objet Dictionary.
Le code suivant illustre l'emploi de la méthode RemoveAll :
Dim a, d, i ' Crée des variables
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athènes" ' Ajoute des clés et des éléments
d.Add "b", "Belgrade"
d.Add "c", "Casablanca"
...
a = d.RemoveAll ' Purge le dictionnaire
Add, méthode (Dictionary) | Exists, méthode | Items, méthode | Keys, méthode | Remove, méthode
Application: Dictionary, objet