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 |
Explain the arrays in vb script?
write a program to display configuration of a local system with the help of vb script.
a;;b;c;;;d in this string output is abcd will come how can we do that in vbscript in QTP testing?
write a vbscript for traffic signal
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
if there is any string in a given format like as "company name employeecode date" then we have to fetch employeecode form string for ex-string is "capgemini12345june2013" then we have to fetch 12345 by using vb script so guys how can we do that please reply it.
what does create object actually do when you call it in vbscript?
Explain about scrrun.dll?
write a vbscrpit to swap values
Mention what is select case statement?
write a vb script to display calculator using case statement?
write a vb script to generate fibonnaci numbers