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
after medical test,when will be the police verification
Explain the support of asp for vb script functionality?
Explain about tristate constants in vbscript?
Mention what is vbscript procedures?
What are class variables?
How will you convert a given number to long in vbscript?
Explain about adodb.stream class?
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
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
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
What are string functions in vbscript?
Mention what is the main difference between function and sub-procedure?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
how to increase the values in text box in a given text box increament by two values by clicking on button
When are redim statement and preserve keyword used in the vbscript language?