tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 VB Script > Basic > Dictionary

Dictionary 

File Name  :  
source/VBS/basic/dictionary.vbs 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
01Set dict = CreateObject("Scripting.Dictionary")
02dict.Add "1", "One"
03dict.Add "2", "Two"
04dict.Add "3", "Three"
05 
06For Each key In dict
07 
08 WScript.Echo key & " --> " & dict.Item(key)
09 
10Next

It gives the following output,
1 --> One
2 --> Two
3 --> Three



 
  


  
bl  br