How can we return a value from User Defined Function ?
For Eg. we have 2 functions. In Fun1 i am getting 2 values
(a,b) and i am addding those 2 and storing in to another var
(c). Now i want to pass that var(c) to another function
(fun2). What will be the script?
Answer Posted / sangee
Call add(40,20,c)
Call subs(c,10)
Function add(a,b,c)
c=a+b
msgbox c
End Function
Function subs(c,d)
e=c*d
msgbox e
End Function
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
Which operator can be used to check if two numbers are equal or not in vbscript?
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
Mention the rules for using option explicit statement?
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
What is the use of the instr function?
Explain some uses of vb script?
What is purpose of scripting.filesystemobject class in vbscript?
Mention what are the rules to name variable in vbscript?
How can constants be declared in the vbscript language?
How to create a cookie using vbscript?
What is the difference between a dictionary and an array?
What is loose binding? Why is it not a good practice to use it?
Mention what is the technology used by vb script?
how does vb script help in web page designing? explain with example.
How will you convert a string to lower case string using vbscript?