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
Explain about the support of asp for vb script functionality?
What are the naming conventions while declaring a variable in the vbscript language?
How will you convert a string to lower case string using vbscript?
What are class events?
In html file what is an ideal position to include vbscript?
How will you get the natural logarithm of the given number in vbscript?
Explain about arrays in vb script?
Can automation testing find ssame no. of bugs what we can find by manual testing?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Mention characteristics of sub procedures?
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
Explain the tristate constants in vbscript?
What purpose does ‘on error resume next’ serves?
What is vbscript?