Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Which in-built functions are used to convert the specified expression in the form of date and string in the vbscript language?

1007


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

1005


What is the purpose of the err object in the vbscript language?

1104


Why is the use of exit do or exit for statements within loops discouraged?

1045


What are the 2 ways in which a variable can be declared in the vbscript language?

1063


when we use filter funtiom invb script(QTP)

2783


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

2197


Explain about the extension .hta?

1075


Explain the tristate constants in vbscript?

1036


What is the use of the instr function?

1059


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

1397


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1891


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

2496


How to replace junk code recorded by QTP with a mall function.

2083


Which function is used to perform string comparison?

1124