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
Answers were Sorted based on User's Feedback
Answer / lak
Function value(arg1,arg2,N)
N1=arg1+arg2
N2=arg1-arg2
N3=arg1*arg2
N4=arg1/arg2
Value= N
End Function
call value(10,10,N1)
msgbox N1
call value(10,10,N2)
msgbox N2
call value(10,10,N3)
msgbox N3
call value(10,10,N4)
msgbox N4
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
How will you get the last occurrence of one string within another string using vbscript?
Inorder to avoid Message box while writing script which alternative method can be used?
I have string like hp company.print tis like company hp.write a program in vbscripting
How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.
write a vb-script code to delete all the mails in my gmail in the year 2011
Explain the functionality of vbscript?
Mention what are the rules to name variable in vbscript?
How to return only alpha bate string from an string str = "bibhu@#$%&das&*)(SUndar"
What if you do not specify anything when you call a procedure?
write a vb script to display factorial of a number using function
How to capture a runtime error in vbscript?
this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..