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

How to create a cookie using vbscript?

589


Which operator can be used to check if two numbers are equal or not in vbscript?

648


What are subprocedures in vbscript?

655


What are the 2 ways to pass a value to the function?

511


How are comments handled in the vbscript language?

508






write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2391


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

12877


What is byref and byval parameters in vbscript?

604


Which date function is used in the vbscript language to find the difference between the 2 dates?

589


How will you get the largest subscript of an array in vbscript?

601


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3186


Mention characteristics of sub procedures?

576


what is resorceallocation

1772


How will you check that a variable is an array in vbscript?

542


1. How do declare public variable in vb scripts?

1575