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

IP ADDRESS
IP ADDRESS: It denotes the host to communicate other host so IPaddress used for identification. It is 32 bit logical address. It divided in two category. Dynamic IP address: It provides IP address is...
B

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...

Automated testing with the help of Behavior driven testing (BDT)
Behavior-driven development (BDD) is a popular and acknowledged Software testing methodology. Behavior driven testing (BDT) is not that popular, but is a companion of BDD. BDT can be used without BDD. BDD...

From VoLTE to LTE to 4G, all you need to know about the technology.
What is VoLTE? VoLTE stands for Voice over LTE and is a new protocol for transmitting voice data over the LTE network. While 2G and 3G networks are circuit-switch based, 4G or LTE networks utilise Packet...
I

Ithejas Academy

0 0
0

Priority in TestNG
public class Priority { @Test (priority=1)public void login() {System.out.println("login");} @Testpublic void email1() {System.out.println("email1");} @Test (priority=-2)public void email2() {System.out.println("email2");} //I...
S

Sarthak C.

0 0
0
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