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 |
How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'
Explain about arrays in vb script?
How to assign a numeric value to a variable?
write a program to display configuration of a local system with the help of vb script.
How can you fetch the value of a cookie?
Open Yahoo Login Page in that page Suppose i have 100 mails and i want to delete 10'th mail now give procedure & Coding For that Scenario
Input = 124 output should be 124421 Please do not use any string functions/variables
I have a webtable and many objects are embedded in side.(like buttons,checkboxes etc). How to know how many such objects are there? what is the class of that objects?
what does create object actually do when you call it in vbscript?
Explain what is loose binding? Why is it not a good practice to use it?
Hi, Anybody could tell me What is the 3rd Largest Number in the series..Thanks in Advance..
How will you generate Reports using Vb Script?it asked in testing(QTP)Interview.Plz Any Body Let me know. Thanks uday Uday_testing@yahoo.co.in