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
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Mention the environments where vbscript could be run?
How to create a cookie using vbscript?
write any ttest cases using check points and parameterization
Mention characteristics of sub procedures?
How can you destroy an object in vbscript?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
Mention what if you do not specify anything when you call a procedure?
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
Explain about filter expression?
When does ‘on click of button’ event gets triggered in the vbscript language?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
When to use function procedures and what are its characteristics?
Which operator is used to perform the comparison among 2 operands in the vbscript language?