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


Please Help Members By Posting Answers For Below Questions

what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1430


How to assign a numeric value to a variable?

612


How will you convert a string to upper case string using vbscript?

548


When does ‘on click of button’ event gets triggered in the vbscript language?

537


How to get the length of the string by making use of the string function?

557






Explain about constants in vb script?

571


Explain about the asc function?

597


Explain the .wsf files?

529


what types of bugs will we find out in banking projects for automation testing?

1760


What is purpose of scripting.filesystemobject class in vbscript?

618


when we use filter funtiom invb script(QTP)

2298


Explain about scrrun.dll?

528


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1440


Mention what is byref and byval parameters in vbscript?

575


Write a code to print numbers from 5 to 0?

673