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
Answers were Sorted based on User's Feedback
Answer / lak
Function value(arg1,arg2,N)
N1=arg1+arg2
N2=arg1-arg2
N3=arg1*arg2
N4=arg1/arg2
Value= N
End Function
call value(10,10,N1)
msgbox N1
call value(10,10,N2)
msgbox N2
call value(10,10,N3)
msgbox N3
call value(10,10,N4)
msgbox N4
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Write a code to print numbers from 5 to 0?
Explain different types of segment?
Which in-built function is used to format the number in the vbscript language?
Difference between Function and Sub routine?
Is it possible to pass optional argument to function in vb script?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.
Explain about .wsf files?
best training centre in bangalore
What is the use of the instr function?
i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?
Explain the difference between POST and GET Method.
what is used of Property........End Property loop ? how to write the script for it?