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
Can anyone send me a vb script function for verifying the functionality of active links on a web page
What is the purpose of regexp object in vbscript?
about vb scripting programs this type of all question& answers
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
What is the difference between a dictionary and an array?
Which command is used for writing text on a page?
Is vbscript a case-sensitive or case-insensitive?
What is the event handling in vbscript?
How can you fetch the value of a cookie?
How to Convert Hex color code to color name in VB Script?
Explain about .wsf files?
What is the extension of the vbscript file?
How will you check that a variable is an array in vbscript?
How to write VB script for login module?
How will you convert a string to lower case string using vbscript?