UrbanPro
true

Learn IT Courses from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

VbScript Dictionary Objects

Praful
19/12/2017 0 0

Dictionary objects are key value pairs object.One of the use of dictionary can be  to find unique elements in a given set of data.

Below is the example of the methods that can be used in dictionary:

Set objDict=CreateObject(“Scripting.Dictionary”)

objDict.Add “1”,”test6″    ‘Add method is used to add unique key with a value to dictionary

objDict.Add “2”,”test2″

objDict.Add “3”,”test3″

objDict.Add “7”,”test7″

‘msgbox objDict.CompareMode

‘msgbox objDict.Count ‘Count method return the no of key-value pairs present in the dictionary.

objDict.Key(“1″)=”6” ‘key method is used to read/modify the value associated with the key

‘msgbox objDict.Exists(“6”) ‘Exists method check whether the given key is present in the dictionary or not.return value is true/false

keys=objDict.Keys ‘keys method returns a collection of all the keys present in the dictionary

For each key in keys

msgbox objDict.Item(key) ‘Item method return the value stored for the specified key.

0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Rename The Logical Name Of SQL Server Database Files Using T-SQL
Rename the logical name of SQL Server database files using T-SQL: 1. Problem: SQL Server database files have two names: one is the logical file name and the other is the physical file name. The logical...

Excel Tip 1: VLOOKUP to pull left column values
Hi,Most of us know that using Vlookup function we can get the right column values, however by using Choose function in Vlookup table array, we can pull left column values as well. In the below screenshot...

SELENIUM
After listening to many testers who want to learn Selenium, I wanted to provide some guidelines which will help learning Selenium. Some of the very much popular questions I saw on Selenium forums are: I...

ASP.NET Syllabus
Part 1: Getting Started with ASP.NET Lesson 1: Overview Of Asp.Net Lesson 2: Adding Controls To A Web Page Lesson 3: Web Page Processing Lesson 4: Validating User Input Lesson...

Short introduction about Appium
“Appium is an open source, cross-platform test automation tool for native, hybrid and mobile web apps, tested on simulators (iOS, FirefoxOS), emulators (Android), and real devices (iOS, Android,...
X

Looking for IT Courses Classes?

The best tutors for IT Courses Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn IT Courses with the Best Tutors

The best Tutors for IT Courses Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more