RemoveAll Method |
Description
Removes all key, item pairs from a Dictionary object.
PowerBASIC Syntax
Example [PowerBASIC]
#INCLUDE "windows.inc" #INCLUDE "scrrun.inc"
DIM pDic AS IDictionary DIM vKey AS VARIANT DIM vItem AS VARIANT
' Create an instance of the Dictionaty object pDic = NEWCOM "Scripting.Dictionary" ' Add some key/item pairs to the dictionary vKey = "a" : vItem = "Athens" pDic.Add vKey, vItem vKey = "b" : vItem = "Belgrade" pDic.Add vKey, vItem vKey = "c" : vItem = "Cairo" pDic.Add vKey, vItem ' Clear the dictionary pDic.RemoveAll
|