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

Can anyone send me a vb script function for verifying the functionality of active links on a web page

1596


What is the purpose of regexp object in vbscript?

553


about vb scripting programs this type of all question& answers

1692


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

481


What is the difference between a dictionary and an array?

576






Which command is used for writing text on a page?

574


Is vbscript a case-sensitive or case-insensitive?

750


What is the event handling in vbscript?

561


How can you fetch the value of a cookie?

547


How to Convert Hex color code to color name in VB Script?

3928


Explain about .wsf files?

618


What is the extension of the vbscript file?

549


How will you check that a variable is an array in vbscript?

542


How to write VB script for login module?

2675


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

553