Hi all..I have two values. a=20 ,b=30
I want to perform c= a+b and c= a*b using user define
function.please anyone give the answer






Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define funct..

Answer / prathyusha

Res=Add (20,30)
msgbox Res
Function Add (a,b)
c=a+b
Add=c
End Function

Res1= Mul (20,30)
msgbox Res1

Function Mul (a,b)
c=a*b
Mul=c
End Function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More VB Script Interview Questions

how to display all the links in one page using vb script in qtp.

1 Answers   DST Global Solutions,


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

0 Answers  


wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me

2 Answers  


How can I access an object in another frame?

1 Answers  


can anyone tell me the procedure of interview held in applabs

0 Answers  






what do you mean .ota mobile format

0 Answers  


what is resorceallocation

0 Answers  


Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario

4 Answers   IBM, AppLabs,


Can anyone send me a vb script function for verifying the functionality of active links on a web page

0 Answers   Zensar,


How to remove the spaces in a string Ex: "this is apple"

5 Answers   Cap Gemini,


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

0 Answers  


how many types of recording are there?

1 Answers  






Categories