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


Please Help Members By Posting Answers For Below Questions

after medical test,when will be the police verification

1718


Explain the support of asp for vb script functionality?

637


Explain about tristate constants in vbscript?

619


Mention what is vbscript procedures?

543


What are class variables?

620






How will you convert a given number to long in vbscript?

494


Explain about adodb.stream class?

595


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2391


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1801


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

553


What are string functions in vbscript?

658


Mention what is the main difference between function and sub-procedure?

553


Out of the different type of operators, which are evaluated first and last in the vbscript language?

567


how to increase the values in text box in a given text box increament by two values by clicking on button

1649


When are redim statement and preserve keyword used in the vbscript language?

602