Hi kiran,

Check the following code, may be this is what you are looking for:

Option Explicit

Dim lngFirst
Dim lngSecond

lngFirst = 10
lngSecond = 20

MsgBox "The sum is: " & AddNumbers(lngFirst, lngSecond)

Function AddNumbers(lngFirstNumber, lngSecondNumber)
AddNumbers = lngFirstNumber + lngSecondNumber
End Function

Regards

2009/10/28 Kiran Ogeti <[email protected]>

>
>  Could anybody share the return statement for function.. probably with a
> sample function..
>
> I had the fucntion written, but when put return.. it says type mismatch
> error..
>
> Thanks
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to