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 variant in vb script?
wht must be the interview question on corinthian information technology solutions incorporated.
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?
what is resorceallocation
Explain some uses of vb script?
What is difference between vbscript and vba?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
When are redim statement and preserve keyword used in the vbscript language?
How will you convert a string to lower case string using vbscript?
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.
Mention how to assign a date value to a variable?
Explain the .wsf files?
i need to sort the data using qtp script for this how i need to write a qtp script
Explain about scrrun.dll?
Explain about the extension .hta?