Can a function return a dictionary object?
Answers were Sorted based on User's Feedback
Answer / uday kumar _ anem
Yes.
Functions can return a dictonary object.
Dim dicObj
Set dicObj = CreateObject("Scripting.Dictionary")
Set obj=getname
MsgBox(obj.item("name"))
Public Function getname()
dicObj.add "name","Uday Kumar"
Set getname=dicObj
End function
| Is This Answer Correct ? | 17 Yes | 3 No |
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 |
What are the types of Object Repositories in QTP?
what is defination of system testing?
3 Answers CodeArrow, Infosys, Omax,
can a Function return more than one value..??? if so please give me the code for that.
5 Answers DST Global Solutions,
How to integrate the qualitycenter with qtp
Hi friend I have query regarding QTP datatable. I want to insert data in datatable during runtime. suppose i wrote datatble.value(1) = "Test data" so when i run the script it says column(1) doesn't exist. Then i write something in column A1 manualy and run the script again. Now it works fine. Pls clarify how i can put value in blank cell of datatable.
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
what is the object properties settings in the QTP
What is output value?
What is test object model in QTP ?
What is keyword driven framework, what is "key" in It.
I m new to QTP? Is it necessary to know VB for learning QTP for Automation? Can I understand QTP excellently Without practical automation?
Hi Friends, I have an application that is having some options to choose. While doing business transaction I need to select one option among from available options. But here the thing is, we won't get one option which we've chosen already and the available options will get automatically from the system with time basis, moreover each and every option having with various label names respective to that option. So obviously if I run my recorded script will automatically gets fail, even though it got pass at first time. Could anyone please give me appropriate solution for this. I would be greatly obliged with you if you give the solution as soon as possible.