We can returnmore than one value to a function using two ways
1) Using Array
2) Using Disctionary Object

Example:
Array:
   result= Venkat(2,3)
Function Venkat(a,b)
dim array(1)
c(0)=a+b
c(1)=a*b
Venkat=c
End Function
 msgbox    result(0)
 msgbox    result(1)

Disctionary Object:
Function Venkat(object)
A=object.getitemcount
For i=0 to A-1
value=A(i).GetROProperty("name")
Dim Dictionary
Set Dictionary=CreateObject("Scriptiing.Dictionary")
Dictionary.Add "name","value"
Next
Venkat=Dictionary
End Function

Please let me know if have not cleared yet

Regards,
Venkat Reddy
9884524606

On Wednesday, January 23, 2013 6:30:07 PM UTC+5:30, pavani b wrote:
>
> *how  to import excel sheet into datatable without using any datatable 
> methods?*
>
>    what is   param array?
>
>       How to  retrieve multiple values using procedure ?
>
>       how to return more than one value to a function
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to