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 / swati

above solution is a subroutine not a function

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the functionality of vbscript?

695


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1814


Explain different types of segment?

762


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?

1730


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

1647






Why is the use of exit do or exit for statements within loops discouraged?

748


What is the use of the formatdatetime function in the vbscript language?

734


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..

2235


Explain the arrays in vb script?

789


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2784


Which object is used to work with the database in the vbscript language and what statement is used to create this object?

687


What is the use of the recordset object and which statement is used to create such an object?

729


What is byref and byval parameters in vbscript?

795


what types of bugs will we find out in banking projects for automation testing?

1971


Explain the string concatenation function in vbscript?

702