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 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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the support of asp for vb script functionality?

942


What are the naming conventions while declaring a variable in the vbscript language?

1045


How will you convert a string to lower case string using vbscript?

1019


What are class events?

980


In html file what is an ideal position to include vbscript?

1413


How will you get the natural logarithm of the given number in vbscript?

1050


Explain about arrays in vb script?

1059


Can automation testing find ssame no. of bugs what we can find by manual testing?

1968


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2857


Mention characteristics of sub procedures?

1053


Can anyone send me a vb script function for verifying the functionality of active links on a web page

2027


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

2238


Explain the tristate constants in vbscript?

1036


What purpose does ‘on error resume next’ serves?

1082


What is vbscript?

1108