Login   /   Register

Complex Dictionary Usage

September 1st, 2008 by daniva
     5 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 55 votes, average: 5 out of 5
Loading ... Loading ...

In this article we are about to see the efficiency of a dictionary when checking or retrieving values from a web-table, For this purpose we have the following table in our AUT.

Update: A Pitfall for Beginners when Working with a Dictionary

June 24th, 2008 by Meir Bar-Tal
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Dear readers,

I wish to bring to your attention an updated version of a previous article on “A Tip for Beginners when Working with a Dictionary”.

Yours,
Meir

An improved dictionary object

June 19th, 2008 by Yaron Assa
     3 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 53 votes, average: 4.67 out of 5
Loading ... Loading ...

This article will offer an improved version of the native Scripting.Dictionary object, and provide a step-by-step guid for building it.

A Pitfall for Beginners when Working with a Dictionary

April 23rd, 2008 by Meir Bar-Tal
     1 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 51 votes, average: 5 out of 5
Loading ... Loading ...

When addressing a non-existing key in a Dictionary object, the add method is invoked by default. The problem is that the Windows Script Host does not inform during runtime that there is a missing key. Moreover, the automatically assigned Empty value may cause trouble to our subsequent code execution.

Dictionary of Employees

April 1st, 2008 by daniva
     2 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 5
Loading ... Loading ...

Demonstration script that combines the usage of classes and dictionary object. Script must be run on the local computer.

Class Employee
Private fname,lname,m_id,m_city,m_country
 
Public Property Get FirstName()
FirstName = fname
End Property
Public Property Let FirstName( value […]

Verify the Existence of a Dictionary Key

April 1st, 2008 by daniva
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...

Demonstration script that verifies the existence of a particular key within a Script Runtime Dictionary. Script must be run on the local computer.

List the Number of Items in a Dictionary

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Demonstration script that counts the number of key-item pairs in a Script Runtime Dictionary. Script must be run on the local computer.

Delete One Element from a Dictionary

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Demonstration script that deletes a specific key-item pair from a Script Runtime Dictionary. Script must be run on the local computer.

Delete All Elements from a Dictionary

April 1st, 2008 by daniva
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...

Demonstration script that deletes all the key-item pairs from a Script Runtime Dictionary. Script must be run on the local computer

Add Elements to a Dictionary

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Demonstration script that adds three key-item pairs to a Script Runtime Dictionary. Script must be run on the local computer.