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 / sureshkumar
Function value(a1,a2, res)
res=a1+a2
res=a1-a2
return res
End Function
call value(10,10,res)
print res[0]
print res[1]
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?
How to assign a numeric value to a variable?
How will you convert a string to upper case string using vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
How to get the length of the string by making use of the string function?
Explain about constants in vb script?
Explain about the asc function?
Explain the .wsf files?
what types of bugs will we find out in banking projects for automation testing?
What is purpose of scripting.filesystemobject class in vbscript?
when we use filter funtiom invb script(QTP)
Explain about scrrun.dll?
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
Mention what is byref and byval parameters in vbscript?
Write a code to print numbers from 5 to 0?