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

Answer / prathyusha

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

Res1= Mul (20,30)
msgbox Res1

Function Mul (a,b)
End Function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

0 Answers   Nous,

Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

0 Answers  

write a vbscript for traffic signal

1 Answers  

write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links

1 Answers  

print the array values in ascending order?

2 Answers   CSS Corp,

Could Anybody tell me VBScript for Check if a given number is Prime number-Don't use any Built- in Functions Boolean/int is Prime(int number).. Thanks in advance.

12 Answers   Amazon, Pyroferus,

Can anyone help me in write coding to get this pattern * ** *** ****

3 Answers  

reverse the string without using reverse string?

2 Answers   CSS Corp,

Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

0 Answers  

which is the best institute in banglaore for software testing?

1 Answers  

Why do we use Option Explicit?

6 Answers  

which is the good software training centre in bangalore?

1 Answers