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
How to capture a runtime error in vbscript?
What are class variables?
How to declare an array in vbscript?
Both Static and dynamic arrays are handled by VB script. Is it true?
Which command is used for writing text on a page?
Explain different types of segment?
How will you get the smallest subscript of an array in vbscript?
Compare java script and vb script?
How can constants be declared in the vbscript language?
Explain the operator precedence in vb script?
Explain vbscript in detail?
Which keyword is used to declare a variable in the vbscript language?
please can you help me to get a code of flames using a visual basic 6
Mention how to assign a date value to a variable?
What is loose binding? Why is it not a good practice to use it?