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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about vb script?

751


How will you check that a variable is an array in vbscript?

546


Which date function is used in the vbscript language to find the difference between the 2 dates?

594


Explain a few date functions in vbscript

558


Does VB/Win make standalone .EXE files?

2903






What is the difference between function and procedure?

575


how to increase the values in text box in a given text box increament by two values by clicking on button

1645


why variable name should not exceed 255 characters?

1822


How to pass argument by reference to a function in vbscript?

538


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1743


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1726


Why to use option explicit in vb script?

600


Anyone have qtp11.0 crack?

2387


Explain vbscript in detail?

617


write a program to display configuration of a local system with the help of vb script.

1688