Categories

Apr 16 in QuickTest Professional (QTP)
Q:

How to create an array of dictionary in UFT?

1 Answer

Apr 16

We can create an array of dictionary using syntax

Dim ArrayofDictionary(2)

First element of array

Set ArrayofDictionary(0)= createobject("scripting.dictionary")

ArrayofDictionary(0).Add "key1", "temp1"

ArrayofDictionary(0).Add "key2", "temp2"

Added keys in first dictionary

Second element of array as dictionary

Set ArrayofDictionary(1)= createobject("scripting.dictionary")

ArrayofDictionary(1).Add "key1", "temp1"

ArrayofDictionary(1).Add "key2", "temp2"

Added keys in second dictionary…..and so on

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Jul 16, 2019 in JavaScript
Apr 16 in QuickTest Professional (QTP)
Jan 16 in QuickTest Professional (QTP)
...