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 |
Can anyone help me in write coding to get this pattern * ** *** ****
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What are lbound and ubound in the vbscript language?
What are the environments supported by vbscript language?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
Give examples where vb script can directly run on users system with windows as os?
What are keywords in the vbscript language?
How to create MSAcess table foriegn key
How to capture a runtime error in vbscript?
How to delete a cookie using vbscript?
can anybody tell vb script code for alphanumeric and special character .which is used in qtp the name text field.