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
What are the 2 ways in which a variable can be declared in the vbscript language?
Mention the rules for using option explicit statement?
What is the difference between vb debugger and the script debugger?
What is the use of the instr function?
What is vbscript procedures?
1. How do declare public variable in vb scripts?
Why is error handling required?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.
Explain the extension .hta?
why variable name should not exceed 255 characters?
please can you help me to get a code of flames using a visual basic 6
Explain about tristate constants in vbscript?
i need to sort the data using qtp script for this how i need to write a qtp script
There are 5 web pages.write a script to click the button on 4th web page.