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
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
How to assign a date value to a variable?
what is the object hyrarchy in QTP for a web based application
Mention how to create a cookie using vbscript?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
What purpose does ‘on error resume next’ serves?
Mention what is variant in vbscript?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
Mention characteristics of sub procedures?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
what is resorceallocation
What is the difference between javascript and vbscript?
How should i Create Email invite with server-side Coding?
What is the purpose of on error resume next statement?