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 |
Is there any thing that we can replace recovery scenario manager in QTP.
How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file is like: <Environment> <Variable> <Name>Name</Name> <Value>Uday Kumar</Value> </Variable> <Variable> <Name>Designation</Name> <Value>Senior Software Engineer</Value> </Variable> </Environment> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?
How to associate shared object repository to test in qtp?
what is the use of automation frame work ??(QTP)
How QTP recognizes Objects in AUT?
What is Object Spy?
7 Answers JKH, Ordain Solutions,
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
How to access values from Unix OS and how to write..
how u will evaluate the tool for test automation?
What is the limitation to XML Checkpoints?
Can I do Game testing with QTP tool
What do you to script when objects are removed from application?