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

did any one attended interview in applabs if you had gone through plz tell me the procedure

2311


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.

2353


How will you get the octal value of the given number in vbscript?

1018


What are subprocedures in vbscript?

1142


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

2187


What is byref and byval parameters in vbscript?

1126


Mention how to assign a date value to a variable?

1140


How can you create a file object to work with the files in the vbscript language?

995


What is vbscript language used for and which earlier language is it modeled upon?

1057


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?

1063


give me any information abou vb script books learn quckly

2262


how to operate webobjects in a webpage using getobject function and then using generic methods?

3158


how does vb script help in web page designing? explain with example.

2038


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

1156


after medical test,when will be the police verification

2221