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
did any one attended interview in applabs if you had gone through plz tell me the procedure
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How will you get the octal value of the given number in vbscript?
What are subprocedures in vbscript?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What is byref and byval parameters in vbscript?
Mention how to assign a date value to a variable?
How can you create a file object to work with the files in the vbscript language?
What is vbscript language used for and which earlier language is it modeled upon?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
give me any information abou vb script books learn quckly
how to operate webobjects in a webpage using getobject function and then using generic methods?
how does vb script help in web page designing? explain with example.
What is the purpose of the err object in the vbscript language?
after medical test,when will be the police verification