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 / 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 |
Post New Answer View All Answers
What is the use of option explicit statement?
Explain the .wsf files?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
about vb scripting programs this type of all question& answers
How to delete a cookie using vbscript?
How to assign a numeric value to a variable?
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
what is the object hyrarchy in QTP for a web based application
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Which function allows you to instantiate an object given its programmatic identifier or progid?
What is the purpose of on error resume next statement?
What if you do not specify anything when you call a procedure?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
what is resorceallocation
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans