Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Can a function return a dictionary object?

Answers were Sorted based on User's Feedback

Can a function return a dictionary object?..

Answer / uday kumar _ anem


Functions can return a dictonary object.

Dim dicObj
Set dicObj = CreateObject("Scripting.Dictionary")

Set obj=getname

Public Function getname()
dicObj.add "name","Uday Kumar"
Set getname=dicObj
End function

Is This Answer Correct ?    17 Yes 3 No

Can a function return a dictionary object?..

Answer / parag barjatiya

Public Sub GetValue()
Set obj = getname
MsgBox (obj.Item("name"))
End Sub

Public Function getname()
Dim dicObj
Set dicObj = CreateObject("Scripting.Dictionary")
dicObj.Add "name", "Uday Kumar"
Set getname = dicObj
End Function

Is This Answer Correct ?    6 Yes 0 No

Post New Answer

More QTP Interview Questions

what is the hierarchy to use properties in descriptive programming

0 Answers  

Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri

2 Answers  

How can you close the second opened browser?

0 Answers  

Give me exact application where we should use low level recording?

6 Answers   CTS,

What is an expert view and keyword view?

0 Answers  

What is the diffrence bettween QTP 9.0 and QTP 9.1?

1 Answers  

In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

0 Answers  

What is the use of an object spy tool in qtp?

0 Answers  

Sometimes my QTP scripts works fine and sometimes its not though I am using same shared Repository and am not doing any changes in it.Even though for descriptive programming also its works fine and sometimes it does not application is pretty stable.Could anyone please answer why am facing these types of issue??

1 Answers  

Explain about the Test Fusion Report of QTP ?

1 Answers   Ordain Solutions,

hi everybody this questions is only for qtp real time users. anyone please clearly explain the approach u r following for qtp testing in ur company or qtp framework u r following in ur company pelase give me clear explanation then u did great favour to inexeprienced qtp users

0 Answers   Automobile, EDP,

explian about the qtp frame work? where u can use it in your project?

1 Answers