How to Pass Multiple values in functions by using vb script?
Function value(arg1,arg2)
N1=arg1+arg2
N2=arg1-agr2
N3=arg1*agr2
N4=arg1/arg2
Value= How to pass ?
End Function
Answer Posted / lak
Function value(arg1,arg2,N)
N1=arg1+arg2
N2=arg1-arg2
N3=arg1*arg2
N4=arg1/arg2
Value= N
End Function
call value(10,10,N1)
msgbox N1
call value(10,10,N2)
msgbox N2
call value(10,10,N3)
msgbox N3
call value(10,10,N4)
msgbox N4
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of on error resume next statement?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
What are class variables?
How will you get a subset of a array in vbscript?
how to comvert 120 into one hunderd twenty rupees only and vice varsa
How are values assigned to the variables in the vbscript language?
how to operate webobjects in a webpage using getobject function and then using generic methods?
What are the 2 ways in which a variable can be declared in the vbscript language?
What is the difference between javascript and vbscript?
What are the different types of loops available in the vbscript language?
What is the difference between vbscript and vba?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
Explain what is loose binding? Why is it not a good practice to use it?
how to set one column as primary key in QTP and fetch values accordingly
How to declare an array in vbscript?