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 / 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 |
Post New Answer View All Answers
Explain sga memory structures?
what is diff between static and dynaic arrys?
what is the features of visual basic?
what is the use of QCUtil? explain with one example?
How are values assigned to string type and numeric type variables?
How to take whole text output from screen of Bitmap Application.
Mention what is byref and byval parameters in vbscript?
How will you reverse a string in vbscript?
Explain what is loose binding? Why is it not a good practice to use it?
Is vbscript language a case-sensitive language and what does it mean?
How will you get the largest subscript of an array in vbscript?
1. How do declare public variable in vb scripts?
What purpose does ‘on error resume next’ serves?
What are string functions in vbscript?
How to throw an error in vbscript?