Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - Can a function return a dictionary object?




222
views
asked marvit August 23, 2014 01:18 AM  

Can a function return a dictionary object?


           

1 Answers



 
answered By Dharma   0  
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 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert