Can a function return a dictionary object?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can find the absolute value of the number in qtp?

513


What is the use of ordinal identifier in qtp?

600


Mention the test steps of qtp.

533


Where can I find and view run-time data table?

512


Write a script to verify font style and color of a windows object using descriptive programming

829






Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1358


What is difference between run time object and test object?

545


i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?

1596


Explain process of smart Identification in QTP?

592


can test automation improve test effectiveness?

1478


Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji

911


Dis advantages of XML checkpoint ?

1571


When Recovery scenario actually starts while testing the application?

1530


How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box

1818


Why bpt?

584