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
In html file what is an ideal position to include vbscript?
Which keyword is used to declare a variable in the vbscript language?
when we use filter funtiom invb script(QTP)
How to replace junk code recorded by QTP with a mall function.
How will you convert a given number to long in vbscript?
What is the difference between function and procedure?
Explain the .wsf files?
What is the difference between javascript and vbscript?
what is event handling?
who will create the object?
How to create a function in vbscript?
How can constants be declared in the vbscript language?
How to write VB script for login module?
Description.Create
Explain the operator precedence in vb script?