QTP Forum


Join the forum, it's quick and easy

QTP Forum
QTP Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Poll
Keywords

Latest topics
» composite primary key
What is a Dictionary Object and know other associated methods to it. EmptyThu Jun 19, 2014 11:31 am by thomasdfg

» How to identify the object when it is dynamically changing behavior
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 6:37 pm by thomasdfg

» Patches for QTP 10, 11, 11.5
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 6:04 pm by thomasdfg

» Retrieving data from Txt file into datatable
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 5:32 pm by thomasdfg

» VB Script to count number of links in a web page.
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 4:51 pm by thomasdfg

» Customized HTML reports in QTP
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 4:42 pm by thomasdfg

» how to print values into a field of a web page, from a data table in qtp?
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 4:37 pm by thomasdfg

» How to delete cookies using QTP?
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 4:30 pm by thomasdfg

» When UFT Does Not Identify an Object
What is a Dictionary Object and know other associated methods to it. EmptyWed Jun 18, 2014 4:23 pm by thomasdfg

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Affiliates
free forum


What is a Dictionary Object and know other associated methods to it.

Go down

Vote if this topic was useful to you

What is a Dictionary Object and know other associated methods to it. Vote_lcap0%What is a Dictionary Object and know other associated methods to it. Vote_rcap 0% 
[ 0 ]
What is a Dictionary Object and know other associated methods to it. Vote_lcap0%What is a Dictionary Object and know other associated methods to it. Vote_rcap 0% 
[ 0 ]
What is a Dictionary Object and know other associated methods to it. Vote_lcap0%What is a Dictionary Object and know other associated methods to it. Vote_rcap 0% 
[ 0 ]
What is a Dictionary Object and know other associated methods to it. Vote_lcap0%What is a Dictionary Object and know other associated methods to it. Vote_rcap 0% 
[ 0 ]
 
Total Votes : 0
 
 

What is a Dictionary Object and know other associated methods to it. Empty What is a Dictionary Object and know other associated methods to it.

Post by Gajre Sun Jul 15, 2012 12:54 am

Dictionary Object:
Object that stores data key, item pairs. Items can be any form of data. Each item is
associated with a unique key. The key is used to retrieve an individual item and is
usually a integer or a string

Ex:
Dim d ' Create a variable.
Set d = CreateObject("Scripting.Dictionary")
d.Add "a", "Athens" ' Add some keys and items.
d.Add "b", "Belgradeā€œ
d.Add "c", "Cairo"

Methods:
Add Method : Adds a key and item pair to a Dictionary object
Syntax:object.Add (Key,Item)

Exists: Returns true if a specified key exists in the Dictionary object, false if it does not.
Syntax: object.Exists(Key)

Items: Returns an array containing all existing Items in a Dictionary object.
Syntax: arrItems = object.Items()

Keys: Returns an array containing all existing keys in a Dictionary object.
Syntax: arrKeys = object.Keys()

Remove: Removes a key, item pair from a Dictionary object.
Syntax: object.Remove(key)

RemoveAll: The RemoveAll method removes all key, item pairs from a Dictionary object.
Syntax: object.RemoveAll()

Propeties:
Count: Returns the number of items in a collection or Dictionary object.
Syntax: object.Count

Item: Sets or returns an item for a specified key in a Dictionary object. For collections,
returns an item based on the specified key.
Syntax:object.Item(Key)

Key: Sets a key in a Dictionary object.
Syntax: object.Key(key) = newkey
Gajre
Gajre
Admin

Posts : 37
Join date : 2012-06-17
Age : 42
Location : Hyderabad

https://qtpelearning.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum